forked from OSchip/llvm-project
Fix a minor bug in expiredAt. endNumber() is the first number that is not valid.
llvm-svn: 17931
This commit is contained in:
parent
a51f5eeac1
commit
7d92fc7e89
|
@ -110,7 +110,7 @@ namespace llvm {
|
|||
}
|
||||
|
||||
bool expiredAt(unsigned index) const {
|
||||
return endNumber() <= (index + 1);
|
||||
return index >= endNumber();
|
||||
}
|
||||
|
||||
bool liveAt(unsigned index) const;
|
||||
|
|
Loading…
Reference in New Issue