From: Chris Lattner Date: Thu, 14 Jul 2011 21:25:42 +0000 (+0000) Subject: revert r135172 until Devang and I figure out the right answer. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f54645346664e07a222281e51bad36b259a0d0af;p=oota-llvm.git revert r135172 until Devang and I figure out the right answer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135191 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index e728fd16a30..30fc60081d5 100644 --- a/lib/Transforms/Utils/ValueMapper.cpp +++ b/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;