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:
d86609f
)
Add assert for valid slot indexes.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Tue, 5 Oct 2010 18:48:55 +0000
(18:48 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Tue, 5 Oct 2010 18:48:55 +0000
(18:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115649
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LiveInterval.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LiveInterval.cpp
b/lib/CodeGen/LiveInterval.cpp
index e18d7c7858bf731cab6472ef81eb2ffbc5fdcd90..0ea8f5978c98123439040a136d66de3c9bf9c28c 100644
(file)
--- a/
lib/CodeGen/LiveInterval.cpp
+++ b/
lib/CodeGen/LiveInterval.cpp
@@
-40,6
+40,7
@@
struct CompEnd {
}
LiveInterval::iterator LiveInterval::find(SlotIndex Pos) {
+ assert(Pos.isValid() && "Cannot search for an invalid index");
return std::upper_bound(begin(), end(), LiveRange(SlotIndex(), Pos, 0),
CompEnd());
}