Don't depend on auto data conversion
authorChris Lattner <sabre@nondot.org>
Mon, 9 Feb 2004 05:16:30 +0000 (05:16 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 9 Feb 2004 05:16:30 +0000 (05:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11229 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/SimpleStructMutation.cpp

index f2061ddb8f72b4bc377c7db836b68138dca83876..401677a881796df88c351c0284a8d70b6bbc38ea 100644 (file)
@@ -90,7 +90,7 @@ static void PruneTypes(const Type *Ty,
   //
   for (Type::subtype_iterator I = Ty->subtype_begin(), E = Ty->subtype_end();
        I != E; ++I) {
-    if (!isa<PointerType>(*I))
+    if (!isa<PointerType>(I->get()))
       PruneTypes(*I, TypesToModify, ProcessedTypes);
   }
 }