aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r--lib/CodeGen/MachineInstr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 600e790aad..3134cfb335 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