Fix a minor bug in expiredAt. endNumber() is the first number that is not valid.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-11-18 01:34:44 +00:00
parent 23b71c1e1e
commit 8d8d513d4d
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ namespace llvm {
}
bool expiredAt(unsigned index) const {
return endNumber() <= (index + 1);
return index >= endNumber();
}
bool liveAt(unsigned index) const;

View File

@ -110,7 +110,7 @@ namespace llvm {
}
bool expiredAt(unsigned index) const {
return endNumber() <= (index + 1);
return index >= endNumber();
}
bool liveAt(unsigned index) const;