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
This commit is contained in:
Devang Patel 2010-01-09 01:24:03 +00:00
parent c5dd34209b
commit 380e80fb53

View File

@ -135,7 +135,7 @@ void ValueEnumerator::setInstructionID(const Instruction *I) {
} }
unsigned ValueEnumerator::getValueID(const Value *V) const { 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); ValueMapType::const_iterator I = MDValueMap.find(V);
assert(I != MDValueMap.end() && "Value not in slotcalculator!"); assert(I != MDValueMap.end() && "Value not in slotcalculator!");
return I->second-1; return I->second-1;