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 | 380e80fb539745c2a4d3bcdf24ce1a69e7900c66 (patch) | |
tree | b611d367249accabbc4ba77eb06c7422e137c6b1 | |
parent | c5dd34209b9936cb500c3d11e732dc094373200d (diff) | |
download | external_llvm-380e80fb539745c2a4d3bcdf24ce1a69e7900c66.zip external_llvm-380e80fb539745c2a4d3bcdf24ce1a69e7900c66.tar.gz external_llvm-380e80fb539745c2a4d3bcdf24ce1a69e7900c66.tar.bz2 |
NamedMDNode is never used so there is no need to enumerate it here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93039 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Bitcode/Writer/ValueEnumerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/ValueEnumerator.cpp b/lib/Bitcode/Writer/ValueEnumerator.cpp index f2b289d..8d4756a 100644 --- 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; |