diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp index 1bfc6e553d6..bf78c53214c 100644 --- a/lib/CodeGen/LiveVariables.cpp +++ b/lib/CodeGen/LiveVariables.cpp @@ -114,10 +114,8 @@ void LiveVariables::HandleVirtRegUse(VarInfo &VRInfo, MachineBasicBlock *MBB, } void LiveVariables::HandlePhysRegUse(unsigned Reg, MachineInstr *MI) { - if (PhysRegInfo[Reg]) { - PhysRegInfo[Reg] = MI; - PhysRegUsed[Reg] = true; - } + PhysRegInfo[Reg] = MI; + PhysRegUsed[Reg] = true; } void LiveVariables::HandlePhysRegDef(unsigned Reg, MachineInstr *MI) {