commit | 7d92fc7e893241ff8149ab1acaf43a104980838d | [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 | 60eed3dd6d466ebd40f835f73ac2d25db8feb36c | |
parent | a51f5eeac14cfd76525257744020abe9b7f3faf6 [diff] |
Fix a minor bug in expiredAt. endNumber() is the first number that is not valid. llvm-svn: 17931
diff --git a/llvm/lib/CodeGen/LiveInterval.h b/llvm/lib/CodeGen/LiveInterval.h index 87cb570..2784ba7 100644 --- a/llvm/lib/CodeGen/LiveInterval.h +++ b/llvm/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;