projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4d4b8c
)
Don't dereference the end() iterator. Thanks to
author
Dan Gohman
<gohman@apple.com>
Mon, 6 Oct 2008 18:00:07 +0000
(18:00 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 6 Oct 2008 18:00:07 +0000
(18:00 +0000)
ENABLE_EXPENSIVE_CHECKS for finding this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57181
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/VirtRegMap.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/VirtRegMap.cpp
b/lib/CodeGen/VirtRegMap.cpp
index f03db748973e18c6dfe6914069534f63dc257ad2..26d019b284167f18fa77e16bc54944eb5778f5f4 100644
(file)
--- a/
lib/CodeGen/VirtRegMap.cpp
+++ b/
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;
}