summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit0cce30fd3483980aa75c33b4c3dea3551f326ec0 (patch)
tree9984c83ac61c3a40e1b97dbe4037b0b9a433329b /llvm/lib/CodeGen
parent66aa87021c8b62ced81efbcc18038e89b3aac4d3 (diff)
downloadbcm5719-llvm-0cce30fd3483980aa75c33b4c3dea3551f326ec0.tar.gz
bcm5719-llvm-0cce30fd3483980aa75c33b4c3dea3551f326ec0.zip
Fix sign error.
llvm-svn: 117677
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveRangeEdit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeEdit.h b/llvm/lib/CodeGen/LiveRangeEdit.h
index 3230a2e9fcd..7acf9e0a949 100644
--- a/llvm/lib/CodeGen/LiveRangeEdit.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud