diff --git a/lib/CodeGen/PHIElimination.cpp b/lib/CodeGen/PHIElimination.cpp index 61122fcbc1e..b84d9d33398 100644 --- a/lib/CodeGen/PHIElimination.cpp +++ b/lib/CodeGen/PHIElimination.cpp @@ -319,7 +319,7 @@ void PHIElimination::LowerPHINode(MachineBasicBlock &MBB, IncomingVNI)); } - LiveInterval &DestLI = LIS->getOrCreateInterval(DestReg); + LiveInterval &DestLI = LIS->getInterval(DestReg); if (NewInstr->getOperand(0).isDead()) { // A dead PHI's live range begins and ends at the start of the MBB, but // the lowered copy, which will still be dead, needs to begin and end at