summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-03-04 00:48:15 +0000
committerBill Wendling <isanbard@gmail.com>2008-03-04 00:48:15 +0000
commit76782f49d88bbf2853ba663a1469d8324ddcbfcc (patch)
treeb0ba76788bf6f3f98de87fc0de0bd6ba60a5f76e /lib/CodeGen/MachineInstr.cpp
parentf92dd28ab78f06de42d885f65aae5ac84dbdb544 (diff)
downloadllvm-76782f49d88bbf2853ba663a1469d8324ddcbfcc.tar.gz
llvm-76782f49d88bbf2853ba663a1469d8324ddcbfcc.tar.bz2
llvm-76782f49d88bbf2853ba663a1469d8324ddcbfcc.tar.xz
Did I say 'e = getNumOperands()'? I meant --e, of course.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47875 91177308-0d34-0410-b5e6-96231b3b80d8
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