diff options
author | Dan Gohman <gohman@apple.com> | 2008-10-06 18:00:07 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-10-06 18:00:07 +0000 |
commit | dfe979bcb0d98c64782bdb3e3bbd4d4733c0026b (patch) | |
tree | 0eaf65845172ce75e8923252f577fccb41b40036 /llvm/lib/CodeGen | |
parent | c7d5d976bf41b958277108aa1029135aeea9ef9e (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |