summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit3eedcce906c8c85a48d5daf3559fdb82268e8404 (patch)
tree4364c4cbe8461a28d286900bc8ed535934c6d352 /llvm
parent50965d9331adf6826beb3e25a17a321c0fd337dd (diff)
downloadbcm5719-llvm-3eedcce906c8c85a48d5daf3559fdb82268e8404.tar.gz
bcm5719-llvm-3eedcce906c8c85a48d5daf3559fdb82268e8404.zip
Reverse iterator - should be incrementing rather than decrementing.
llvm-svn: 150778
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 52a90960ec5..3ab98e1bf57 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud