revert r135172 until Devang and I figure out the right answer.
authorChris Lattner <sabre@nondot.org>
Thu, 14 Jul 2011 21:25:42 +0000 (21:25 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 14 Jul 2011 21:25:42 +0000 (21:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135191 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/ValueMapper.cpp

index e728fd16a3002877942a41a1c22a5cceb6d2d8f7..30fc60081d5919f7b441713ec0d5784a8703ae94 100644 (file)
@@ -167,10 +167,9 @@ void llvm::RemapInstruction(Instruction *I, ValueToValueMapTy &VMap,
     }
   }
 
-  // Remap attached metadata.  Don't bother remapping DebugLoc, it can never
-  // have mappings to do.
+  // Remap attached metadata.
   SmallVector<std::pair<unsigned, MDNode *>, 4> MDs;
-  I->getAllMetadataOtherThanDebugLoc(MDs);
+  I->getAllMetadata(MDs);
   for (SmallVectorImpl<std::pair<unsigned, MDNode *> >::iterator
        MI = MDs.begin(), ME = MDs.end(); MI != ME; ++MI) {
     MDNode *Old = MI->second;