summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-10-06 18:00:07 +0000
committerDan Gohman <gohman@apple.com>2008-10-06 18:00:07 +0000
commitdfe979bcb0d98c64782bdb3e3bbd4d4733c0026b (patch)
tree0eaf65845172ce75e8923252f577fccb41b40036 /llvm/lib/CodeGen
parentc7d5d976bf41b958277108aa1029135aeea9ef9e (diff)
downloadbcm5719-llvm-dfe979bcb0d98c64782bdb3e3bbd4d4733c0026b.tar.gz
bcm5719-llvm-dfe979bcb0d98c64782bdb3e3bbd4d4733c0026b.zip
Don't dereference the end() iterator. Thanks to
ENABLE_EXPENSIVE_CHECKS for finding this. llvm-svn: 57181
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/VirtRegMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp
index f03db748973..26d019b2841 100644
--- a/llvm/lib/CodeGen/VirtRegMap.cpp
+++ b/llvm/lib/CodeGen/VirtRegMap.cpp
@@ -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;
}
OpenPOWER on IntegriCloud