diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-14 21:25:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-14 21:25:42 +0000 |
commit | f54645346664e07a222281e51bad36b259a0d0af (patch) | |
tree | 4370b93dcec54987cc9f5594b755262997f37eb5 /lib | |
parent | e540c7422ca13c950f0e8f6f93af7225bb7742a9 (diff) | |
download | llvm-f54645346664e07a222281e51bad36b259a0d0af.tar.gz llvm-f54645346664e07a222281e51bad36b259a0d0af.tar.bz2 llvm-f54645346664e07a222281e51bad36b259a0d0af.tar.xz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Utils/ValueMapper.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index e728fd16a3..30fc60081d 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<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; |