commit | 8d8d513d4dcd4d98b92ccce10a9907086af28f1e | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Nov 18 01:34:44 2004 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Nov 18 01:34:44 2004 +0000 |
tree | 76165bf3bec871f9500fa2171beb3127e061be1b | |
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
diff --git a/lib/CodeGen/LiveInterval.h b/lib/CodeGen/LiveInterval.h index 87cb570..2784ba7 100644 --- a/lib/CodeGen/LiveInterval.h +++ b/lib/CodeGen/LiveInterval.h
@@ -110,7 +110,7 @@ } bool expiredAt(unsigned index) const { - return endNumber() <= (index + 1); + return index >= endNumber(); } bool liveAt(unsigned index) const;