projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e540c74
)
revert r135172 until Devang and I figure out the right answer.
author
Chris Lattner
<sabre@nondot.org>
Thu, 14 Jul 2011 21:25:42 +0000
(21:25 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/ValueMapper.cpp
b/lib/Transforms/Utils/ValueMapper.cpp
index e728fd16a3002877942a41a1c22a5cceb6d2d8f7..30fc60081d5919f7b441713ec0d5784a8703ae94 100644
(file)
--- 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->getAllMetadata
OtherThanDebugLoc
(MDs);
+ I->getAllMetadata(MDs);
for (SmallVectorImpl<std::pair<unsigned, MDNode *> >::iterator
MI = MDs.begin(), ME = MDs.end(); MI != ME; ++MI) {
MDNode *Old = MI->second;