NamedMDNode is never used so there is no need to enumerate it here.
authorDevang Patel <dpatel@apple.com>
Sat, 9 Jan 2010 01:24:03 +0000 (01:24 +0000)
committerDevang 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

index f2b289d91b41161d8d8791929478edc8fbcf9ffc..8d4756a85f9735789e7e27c1822d8ebe96b07d1a 100644 (file)
@@ -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;