summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-29 18:21:18 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-29 18:21:18 +0000
commitdb4eec3d2ce6d0176ed8f689fc63737fba125b90 (patch)
tree4be522d7629368465324a0a4d230653b8ca6f88d /lib
parent14a596258d299d174ebd47cc501cb019b8c99ba0 (diff)
downloadllvm-db4eec3d2ce6d0176ed8f689fc63737fba125b90.tar.gz
llvm-db4eec3d2ce6d0176ed8f689fc63737fba125b90.tar.bz2
llvm-db4eec3d2ce6d0176ed8f689fc63737fba125b90.tar.xz
Fix sign error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/LiveRangeEdit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveRangeEdit.h b/lib/CodeGen/LiveRangeEdit.h
index 3230a2e9fc..7acf9e0a94 100644
--- a/lib/CodeGen/LiveRangeEdit.h
+++ b/lib/CodeGen/LiveRangeEdit.h
@@ -78,7 +78,7 @@ public:
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.