NamedMDNode is never used so there is no need to enumerate it here.

llvm-svn: 93039
This commit is contained in:
Devang Patel 2010-01-09 01:24:03 +00:00
parent f50a3f19da
commit 44c06e1966
1 changed files with 1 additions and 1 deletions

View 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;