[llvm-commits] [llvm] r57181 - /llvm/trunk/lib/CodeGen/VirtRegMap.cpp
Dan Gohman
gohman at apple.com
Mon Oct 6 11:00:08 PDT 2008
Author: djg
Date: Mon Oct 6 13:00:07 2008
New Revision: 57181
URL: http://llvm.org/viewvc/llvm-project?rev=57181&view=rev
Log:
Don't dereference the end() iterator. Thanks to
ENABLE_EXPENSIVE_CHECKS for finding this.
Modified:
llvm/trunk/lib/CodeGen/VirtRegMap.cpp
Modified: llvm/trunk/lib/CodeGen/VirtRegMap.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/VirtRegMap.cpp?rev=57181&r1=57180&r2=57181&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/VirtRegMap.cpp (original)
+++ llvm/trunk/lib/CodeGen/VirtRegMap.cpp Mon Oct 6 13:00:07 2008
@@ -143,7 +143,7 @@
LowSpillSlot = SS;
if (HighSpillSlot == NO_STACK_SLOT || SS > HighSpillSlot)
HighSpillSlot = SS;
- I->second = SS;
+ EmergencySpillSlots[RC] = SS;
return SS;
}
More information about the llvm-commits
mailing list