diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 600e790aad5..3134cfb3358 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -703,7 +703,7 @@ bool MachineInstr::addRegisterKilled(unsigned IncomingReg, // "kill". Let the super-register take care of this // information. RemoveOperand(i); - e = getNumOperands(); + --e; continue; } else { // The super-register is going to take care of this kill