DebugLoc's don't hide any interesting types for TypeFinder to find.
authorChris Lattner <sabre@nondot.org>
Thu, 14 Jul 2011 18:58:40 +0000 (18:58 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 14 Jul 2011 18:58:40 +0000 (18:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135174 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Module.cpp

index 8a738cbac5c74766503ae18551fdbedb2ed172d1..be2fcb8ac6c06fa546154a73e64cc2a6957baebc 100644 (file)
@@ -478,7 +478,7 @@ namespace {
               incorporateValue(*OI);
             
             // Incorporate types hiding in metadata.
-            I.getAllMetadata(MDForInst);
+            I.getAllMetadataOtherThanDebugLoc(MDForInst);
             for (unsigned i = 0, e = MDForInst.size(); i != e; ++i)
               incorporateMDNode(MDForInst[i].second);
             MDForInst.clear();