From: Owen Anderson Date: Wed, 24 Sep 2008 21:30:38 +0000 (+0000) Subject: Fix off-by-one error when updating live intervals. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f835f8407196812c76ec5c20aa6a03d1249e8baa;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index 8bda41db3fa..33bfa57b1cd 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);