summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2012-02-17 01:54:11 +0000
committerLang Hames <lhames@gmail.com>2012-02-17 01:54:11 +0000
commit00195d828b934455da597dbba72f1aade4e53393 (patch)
treef5754f94b04edc2884dd02745bcc0284d06db819 /lib/CodeGen/MachineInstr.cpp
parent8f5e8c1cd69fa77bea20140a7132ee2dea166c6d (diff)
downloadllvm-00195d828b934455da597dbba72f1aade4e53393.tar.gz
llvm-00195d828b934455da597dbba72f1aade4e53393.tar.bz2
llvm-00195d828b934455da597dbba72f1aade4e53393.tar.xz
Reverse iterator - should be incrementing rather than decrementing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r--lib/CodeGen/MachineInstr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 52a90960ec..3ab98e1bf5 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -904,9 +904,9 @@ MachineInstr* MachineInstr::getBundleStart() {
if (!isInsideBundle())
return this;
MachineBasicBlock::reverse_instr_iterator MII(this);
- --MII;
+ ++MII;
while (MII->isInsideBundle())
- --MII;
+ ++MII;
return &*MII;
}