Add assert for valid slot indexes.
llvm-svn: 115649
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user