[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervals.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Thu Jan 22 12:35:02 PST 2004
Changes in directory llvm/lib/CodeGen:
LiveIntervals.cpp updated: 1.28 -> 1.29
---
Log message:
Fix incorrect negatives in LiveIntervals::Interval::liveAt().
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/CodeGen/LiveIntervals.cpp
diff -u llvm/lib/CodeGen/LiveIntervals.cpp:1.28 llvm/lib/CodeGen/LiveIntervals.cpp:1.29
--- llvm/lib/CodeGen/LiveIntervals.cpp:1.28 Fri Jan 16 10:23:23 2004
+++ llvm/lib/CodeGen/LiveIntervals.cpp Thu Jan 22 12:33:50 2004
@@ -371,7 +371,7 @@
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;
More information about the llvm-commits
mailing list