aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorSergei Larin <slarin@codeaurora.org>2013-01-09 17:54:33 +0000
committerSergei Larin <slarin@codeaurora.org>2013-01-09 17:54:33 +0000
commit12cd49ae1d3c8f45f3e41b6cce681b667b99ef07 (patch)
tree3d5320724ba2f7825875d7759d5a3a8f164e68df /lib/CodeGen/MachineInstr.cpp
parenta1db5de9e70dd8ffda57b1a4373915ea866b6f1d (diff)
Fix a typo in MachineInstr::unbundleFromSucc() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171983 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 29d8866b8d..a4d9813e50 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -897,7 +897,7 @@ void MachineInstr::unbundleFromSucc() {
assert(isBundledWithSucc() && "MI isn't bundled with its successor");
clearFlag(BundledSucc);
MachineBasicBlock::instr_iterator Succ = this;
- --Succ;
+ ++Succ;
assert(Succ->isBundledWithPred() && "Inconsistent bundle flags");
Succ->clearFlag(BundledPred);
}