mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
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:
parent
23b71c1e1e
commit
8d8d513d4d
@ -110,7 +110,7 @@ namespace llvm {
|
||||
}
|
||||
|
||||
bool expiredAt(unsigned index) const {
|
||||
return endNumber() <= (index + 1);
|
||||
return index >= endNumber();
|
||||
}
|
||||
|
||||
bool liveAt(unsigned index) const;
|
||||
|
@ -110,7 +110,7 @@ namespace llvm {
|
||||
}
|
||||
|
||||
bool expiredAt(unsigned index) const {
|
||||
return endNumber() <= (index + 1);
|
||||
return index >= endNumber();
|
||||
}
|
||||
|
||||
bool liveAt(unsigned index) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user