diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index 7ca76e0f7ae..9a6e5bc3f07 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -146,10 +146,10 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) { varInfo.DefInst = prevMi; // update live variables for regB - if (LV->removeVirtualRegisterKilled(regB, &*mbbi, mi)) + if (LV->removeVirtualRegisterKilled(regB, mbbi, mi)) LV->addVirtualRegisterKilled(regB, prevMi); - if (LV->removeVirtualRegisterDead(regB, &*mbbi, mi)) + if (LV->removeVirtualRegisterDead(regB, mbbi, mi)) LV->addVirtualRegisterDead(regB, prevMi); }