mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-18 01:17:46 +00:00
When we know we have an MDValue or MDString, call EnumerateMetadata
directly instead of going through EnumerateValue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111894 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9d072f51eb
commit
78aeae2d7b
@ -352,7 +352,7 @@ void ValueEnumerator::EnumerateOperandType(const Value *V) {
|
||||
EnumerateOperandType(Elem);
|
||||
}
|
||||
} else if (isa<MDString>(V) || isa<MDNode>(V))
|
||||
EnumerateValue(V);
|
||||
EnumerateMetadata(V);
|
||||
}
|
||||
|
||||
void ValueEnumerator::EnumerateAttributes(const AttrListPtr &PAL) {
|
||||
|
Loading…
Reference in New Issue
Block a user