[llvm-commits] [llvm] r117677 - /llvm/trunk/lib/CodeGen/LiveRangeEdit.h

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Oct 29 11:21:18 PDT 2010


Author: stoklund
Date: Fri Oct 29 13:21:18 2010
New Revision: 117677

URL: http://llvm.org/viewvc/llvm-project?rev=117677&view=rev
Log:
Fix sign error.

Modified:
    llvm/trunk/lib/CodeGen/LiveRangeEdit.h

Modified: llvm/trunk/lib/CodeGen/LiveRangeEdit.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveRangeEdit.h?rev=117677&r1=117676&r2=117677&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveRangeEdit.h (original)
+++ llvm/trunk/lib/CodeGen/LiveRangeEdit.h Fri Oct 29 13:21:18 2010
@@ -78,7 +78,7 @@
   iterator begin() const { return newRegs_.begin()+firstNew_; }
   iterator end() const { return newRegs_.end(); }
   unsigned size() const { return newRegs_.size()-firstNew_; }
-  LiveInterval *get(unsigned idx) const { return newRegs_[idx-firstNew_]; }
+  LiveInterval *get(unsigned idx) const { return newRegs_[idx+firstNew_]; }
 
   /// assignStackSlot - Ensure a stack slot is assigned to parent.
   /// @return the assigned stack slot number.





More information about the llvm-commits mailing list