diff options
author | Devang Patel <dpatel@apple.com> | 2010-01-09 01:24:03 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-01-09 01:24:03 +0000 |
commit | 44c06e196652adaf390cebbd02e8cf515ee06f9a (patch) | |
tree | 8429084875566b6c91f1f322b8a98f084fc0f8be /llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | |
parent | f50a3f19dabadac1160a820d36b00213cf9bf93b (diff) | |
download | bcm5719-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.cpp | 2 |
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; |