aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/CodeGen/LiveInterval.h2
-rw-r--r--lib/CodeGen/LiveInterval.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index 87cb570306..2784ba7f2b 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/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;
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;