mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Revert previous change. The code was correct...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e1a210777d
commit
1075ecd32f
@ -371,7 +371,7 @@ void LiveIntervals::Interval::mergeRangesBackward(Ranges::iterator it)
|
|||||||
bool LiveIntervals::Interval::liveAt(unsigned index) const
|
bool LiveIntervals::Interval::liveAt(unsigned index) const
|
||||||
{
|
{
|
||||||
Ranges::const_iterator r = ranges.begin();
|
Ranges::const_iterator r = ranges.begin();
|
||||||
while (r != ranges.end() && index < r->second) {
|
while (r != ranges.end() && index < (r->second - 1)) {
|
||||||
if (index >= r->first)
|
if (index >= r->first)
|
||||||
return true;
|
return true;
|
||||||
++r;
|
++r;
|
||||||
|
Loading…
Reference in New Issue
Block a user