mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Use the AttributeSet as the 'key' to the map instead of the 'raw' pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174950 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -418,10 +418,11 @@ void ValueEnumerator::EnumerateOperandType(const Value *V) {
|
||||
EnumerateMetadata(V);
|
||||
}
|
||||
|
||||
void ValueEnumerator::EnumerateAttributes(const AttributeSet &PAL) {
|
||||
void ValueEnumerator::EnumerateAttributes(AttributeSet PAL) {
|
||||
if (PAL.isEmpty()) return; // null is always 0.
|
||||
|
||||
// Do a lookup.
|
||||
unsigned &Entry = AttributeMap[PAL.getRawPointer()];
|
||||
unsigned &Entry = AttributeMap[PAL];
|
||||
if (Entry == 0) {
|
||||
// Never saw this before, add it.
|
||||
Attribute.push_back(PAL);
|
||||
|
Reference in New Issue
Block a user