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:
2959ebd
)
Undo r135191 (i.e. reapply Chris's patch. Now linker maps NamedMDNodes first, so...
author
Devang Patel
<dpatel@apple.com>
Thu, 14 Jul 2011 22:14:06 +0000
(22:14 +0000)
committer
Devang Patel
<dpatel@apple.com>
Thu, 14 Jul 2011 22:14:06 +0000
(22:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135205
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 30fc60081d5919f7b441713ec0d5784a8703ae94..e728fd16a3002877942a41a1c22a5cceb6d2d8f7 100644
(file)
--- a/
lib/Transforms/Utils/ValueMapper.cpp
+++ b/
lib/Transforms/Utils/ValueMapper.cpp
@@
-167,9
+167,10
@@
void llvm::RemapInstruction(Instruction *I, ValueToValueMapTy &VMap,
}
}
- // Remap attached metadata.
+ // Remap attached metadata. Don't bother remapping DebugLoc, it can never
+ // have mappings to do.
SmallVector<std::pair<unsigned, MDNode *>, 4> MDs;
- I->getAllMetadata(MDs);
+ I->getAllMetadata
OtherThanDebugLoc
(MDs);
for (SmallVectorImpl<std::pair<unsigned, MDNode *> >::iterator
MI = MDs.begin(), ME = MDs.end(); MI != ME; ++MI) {
MDNode *Old = MI->second;