diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-18 01:34:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-18 01:34:44 +0000 |
commit | 8d8d513d4dcd4d98b92ccce10a9907086af28f1e (patch) | |
tree | 76165bf3bec871f9500fa2171beb3127e061be1b /lib | |
parent | 23b71c1e1e33219327b1c0edf43034dbe4c3ae90 (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/LiveInterval.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveInterval.h b/lib/CodeGen/LiveInterval.h index 87cb570306..2784ba7f2b 100644 --- a/lib/CodeGen/LiveInterval.h +++ b/lib/CodeGen/LiveInterval.h @@ -110,7 +110,7 @@ namespace llvm { } bool expiredAt(unsigned index) const { - return endNumber() <= (index + 1); + return index >= endNumber(); } bool liveAt(unsigned index) const; |