mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Fix incorrect negatives in LiveIntervals::Interval::liveAt().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10956 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2f561384fb
commit
e1a210777d
@ -371,7 +371,7 @@ void LiveIntervals::Interval::mergeRangesBackward(Ranges::iterator it)
|
||||
bool LiveIntervals::Interval::liveAt(unsigned index) const
|
||||
{
|
||||
Ranges::const_iterator r = ranges.begin();
|
||||
while (r != ranges.end() && index < (r->second - 1)) {
|
||||
while (r != ranges.end() && index < r->second) {
|
||||
if (index >= r->first)
|
||||
return true;
|
||||
++r;
|
||||
|
Loading…
Reference in New Issue
Block a user