[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervals.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Thu Jan 22 13:19:03 PST 2004


Changes in directory llvm/lib/CodeGen:

LiveIntervals.cpp updated: 1.29 -> 1.30

---
Log message:

Revert previous change. The code was correct...


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/CodeGen/LiveIntervals.cpp
diff -u llvm/lib/CodeGen/LiveIntervals.cpp:1.29 llvm/lib/CodeGen/LiveIntervals.cpp:1.30
--- llvm/lib/CodeGen/LiveIntervals.cpp:1.29	Thu Jan 22 12:33:50 2004
+++ llvm/lib/CodeGen/LiveIntervals.cpp	Thu Jan 22 13:17:52 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) {
+    while (r != ranges.end() && index < (r->second - 1)) {
         if (index >= r->first)
             return true;
         ++r;





More information about the llvm-commits mailing list