mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Don't dereference the end() iterator. Thanks to
ENABLE_EXPENSIVE_CHECKS for finding this. llvm-svn: 57181
This commit is contained in:
parent
4f91b766d2
commit
8b33abdd5b
@ -143,7 +143,7 @@ int VirtRegMap::getEmergencySpillSlot(const TargetRegisterClass *RC) {
|
||||
LowSpillSlot = SS;
|
||||
if (HighSpillSlot == NO_STACK_SLOT || SS > HighSpillSlot)
|
||||
HighSpillSlot = SS;
|
||||
I->second = SS;
|
||||
EmergencySpillSlots[RC] = SS;
|
||||
return SS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user