1
0
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:
Dan Gohman 2008-10-06 18:00:07 +00:00
parent 4f91b766d2
commit 8b33abdd5b

View File

@ -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;
}