forked from OSchip/llvm-project
Fix off-by-one error when updating live intervals.
llvm-svn: 56567
This commit is contained in:
parent
24b43007d1
commit
4ef4b1a7c1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue