summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-01-09 01:24:03 +0000
committerDevang Patel <dpatel@apple.com>2010-01-09 01:24:03 +0000
commit44c06e196652adaf390cebbd02e8cf515ee06f9a (patch)
tree8429084875566b6c91f1f322b8a98f084fc0f8be /llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
parentf50a3f19dabadac1160a820d36b00213cf9bf93b (diff)
downloadbcm5719-llvm-44c06e196652adaf390cebbd02e8cf515ee06f9a.tar.gz
bcm5719-llvm-44c06e196652adaf390cebbd02e8cf515ee06f9a.zip
NamedMDNode is never used so there is no need to enumerate it here.
llvm-svn: 93039
Diffstat (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/ValueEnumerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
index f2b289d91b4..8d4756a85f9 100644
--- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud