From fb9f4926d1a55fb3a8889bb9694e2b10d42dfc09 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 14 Jul 2011 21:25:42 +0000 Subject: [PATCH] revert r135172 until Devang and I figure out the right answer. llvm-svn: 135191 --- llvm/lib/Transforms/Utils/ValueMapper.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp index e728fd16a300..30fc60081d59 100644 --- a/llvm/lib/Transforms/Utils/ValueMapper.cpp +++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp @@ -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, 4> MDs; - I->getAllMetadataOtherThanDebugLoc(MDs); + I->getAllMetadata(MDs); for (SmallVectorImpl >::iterator MI = MDs.begin(), ME = MDs.end(); MI != ME; ++MI) { MDNode *Old = MI->second;