mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
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:
parent
c5dd34209b
commit
380e80fb53
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user