summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervals.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-01-22 18:33:50 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-01-22 18:33:50 +0000
commit0aa9d0278da3ac15b91ced6c7a4a30472109d239 (patch)
treef2f4513e557a801a2bc2bb96e27cf09a7ba645f7 /llvm/lib/CodeGen/LiveIntervals.cpp
parent80f89ea522b944af25ac149266be17af5d79492c (diff)
downloadbcm5719-llvm-0aa9d0278da3ac15b91ced6c7a4a30472109d239.tar.gz
bcm5719-llvm-0aa9d0278da3ac15b91ced6c7a4a30472109d239.zip
Fix incorrect negatives in LiveIntervals::Interval::liveAt().
llvm-svn: 10956
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervals.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp
index eb9cf38b82a..d789fbd60c7 100644
--- a/llvm/lib/CodeGen/LiveIntervals.cpp
+++ b/llvm/lib/CodeGen/LiveIntervals.cpp
@@ -371,7 +371,7 @@ void LiveIntervals::Interval::mergeRangesBackward(Ranges::iterator it)
bool LiveIntervals::Interval::liveAt(unsigned index) const
{
Ranges::const_iterator r = ranges.begin();
- while (r != ranges.end() && index < (r->second - 1)) {
+ while (r != ranges.end() && index < r->second) {
if (index >= r->first)
return true;
++r;
OpenPOWER on IntegriCloud