[llvm-commits] CVS: llvm/lib/CodeGen/LiveInterval.h

Chris Lattner lattner at cs.uiuc.edu
Wed Nov 17 17:34:56 PST 2004



Changes in directory llvm/lib/CodeGen:

LiveInterval.h updated: 1.9 -> 1.10
---
Log message:

Fix a minor bug in expiredAt.  endNumber() is the first number that is not valid.


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

Index: llvm/lib/CodeGen/LiveInterval.h
diff -u llvm/lib/CodeGen/LiveInterval.h:1.9 llvm/lib/CodeGen/LiveInterval.h:1.10
--- llvm/lib/CodeGen/LiveInterval.h:1.9	Wed Nov 17 19:29:39 2004
+++ llvm/lib/CodeGen/LiveInterval.h	Wed Nov 17 19:34:44 2004
@@ -110,7 +110,7 @@
     }
 
     bool expiredAt(unsigned index) const {
-      return endNumber() <= (index + 1);
+      return index >= endNumber();
     }
 
     bool liveAt(unsigned index) const;






More information about the llvm-commits mailing list