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
This commit is contained in:
Owen Anderson 2008-09-24 21:30:38 +00:00
parent a789af239c
commit f835f84071

View File

@ -822,7 +822,7 @@ void StrongPHIElimination::InsertCopies(MachineDomTreeNode* MDTN,
LiveIntervals::getUseIndex(LI.getInstructionIndex(I))); LiveIntervals::getUseIndex(LI.getInstructionIndex(I)));
LiveRange LR (LI.getMBBStartIdx(I->getParent()), LiveRange LR (LI.getMBBStartIdx(I->getParent()),
LiveIntervals::getUseIndex(LI.getInstructionIndex(I)), LiveIntervals::getUseIndex(LI.getInstructionIndex(I))+1,
FirstVN); FirstVN);
Int.addRange(LR); Int.addRange(LR);