diff options
author | Lang Hames <lhames@gmail.com> | 2012-02-17 01:54:11 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2012-02-17 01:54:11 +0000 |
commit | 3eedcce906c8c85a48d5daf3559fdb82268e8404 (patch) | |
tree | 4364c4cbe8461a28d286900bc8ed535934c6d352 | |
parent | 50965d9331adf6826beb3e25a17a321c0fd337dd (diff) | |
download | bcm5719-llvm-3eedcce906c8c85a48d5daf3559fdb82268e8404.tar.gz bcm5719-llvm-3eedcce906c8c85a48d5daf3559fdb82268e8404.zip |
Reverse iterator - should be incrementing rather than decrementing.
llvm-svn: 150778
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 4 |
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; } |