mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Don't dereference the end() iterator. Thanks to
ENABLE_EXPENSIVE_CHECKS for finding this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57181 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e4d4b8c533
commit
4daa9071ed
@ -143,7 +143,7 @@ int VirtRegMap::getEmergencySpillSlot(const TargetRegisterClass *RC) {
|
|||||||
LowSpillSlot = SS;
|
LowSpillSlot = SS;
|
||||||
if (HighSpillSlot == NO_STACK_SLOT || SS > HighSpillSlot)
|
if (HighSpillSlot == NO_STACK_SLOT || SS > HighSpillSlot)
|
||||||
HighSpillSlot = SS;
|
HighSpillSlot = SS;
|
||||||
I->second = SS;
|
EmergencySpillSlots[RC] = SS;
|
||||||
return SS;
|
return SS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user