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:
c5dd342
)
NamedMDNode is never used so there is no need to enumerate it here.
author
Devang Patel
<dpatel@apple.com>
Sat, 9 Jan 2010 01:24:03 +0000
(
01:24
+0000)
committer
Devang Patel
<dpatel@apple.com>
Sat, 9 Jan 2010 01:24:03 +0000
(
01:24
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93039
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bitcode/Writer/ValueEnumerator.cpp
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Writer/ValueEnumerator.cpp
b/lib/Bitcode/Writer/ValueEnumerator.cpp
index f2b289d91b41161d8d8791929478edc8fbcf9ffc..8d4756a85f9735789e7e27c1822d8ebe96b07d1a 100644
(file)
--- a/
lib/Bitcode/Writer/ValueEnumerator.cpp
+++ b/
lib/Bitcode/Writer/ValueEnumerator.cpp
@@
-135,7
+135,7
@@
void ValueEnumerator::setInstructionID(const Instruction *I) {
}
unsigned ValueEnumerator::getValueID(const Value *V) const {
- if (isa<MetadataBase>(V)
|| isa<NamedMDNode>(V)
) {
+ if (isa<MetadataBase>(V)) {
ValueMapType::const_iterator I = MDValueMap.find(V);
assert(I != MDValueMap.end() && "Value not in slotcalculator!");
return I->second-1;