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:
Alkis Evlogimenos 2004-01-22 19:17:52 +00:00
parent e1a210777d
commit 1075ecd32f

View File

@ -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;