summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-18 01:34:44 +0000
committerChris Lattner <sabre@nondot.org>2004-11-18 01:34:44 +0000
commit7d92fc7e893241ff8149ab1acaf43a104980838d (patch)
tree60eed3dd6d466ebd40f835f73ac2d25db8feb36c /llvm/lib
parenta51f5eeac14cfd76525257744020abe9b7f3faf6 (diff)
downloadbcm5719-llvm-7d92fc7e893241ff8149ab1acaf43a104980838d.tar.gz
bcm5719-llvm-7d92fc7e893241ff8149ab1acaf43a104980838d.zip
Fix a minor bug in expiredAt. endNumber() is the first number that is not valid.
llvm-svn: 17931
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.h b/llvm/lib/CodeGen/LiveInterval.h
index 87cb570306c..2784ba7f2b1 100644
--- a/llvm/lib/CodeGen/LiveInterval.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud