diff options
author | Owen Anderson <resistor@mac.com> | 2008-09-24 21:30:38 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-09-24 21:30:38 +0000 |
commit | f835f8407196812c76ec5c20aa6a03d1249e8baa (patch) | |
tree | b1ea18351e71fe26f864c5181e6b5dfda6b632a4 | |
parent | a789af239ca97bf23a268101f9f6e89d3f164647 (diff) |
Fix off-by-one error when updating live intervals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56567 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/StrongPHIElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index 8bda41db3f..33bfa57b1c 100644 --- a/lib/CodeGen/StrongPHIElimination.cpp +++ b/lib/CodeGen/StrongPHIElimination.cpp @@ -822,7 +822,7 @@ void StrongPHIElimination::InsertCopies(MachineDomTreeNode* MDTN, LiveIntervals::getUseIndex(LI.getInstructionIndex(I))); LiveRange LR (LI.getMBBStartIdx(I->getParent()), - LiveIntervals::getUseIndex(LI.getInstructionIndex(I)), + LiveIntervals::getUseIndex(LI.getInstructionIndex(I))+1, FirstVN); Int.addRange(LR); |