commit | 3eedcce906c8c85a48d5daf3559fdb82268e8404 | [log] [tgz] |
---|---|---|
author | Lang Hames <lhames@gmail.com> | Fri Feb 17 01:54:11 2012 +0000 |
committer | Lang Hames <lhames@gmail.com> | Fri Feb 17 01:54:11 2012 +0000 |
tree | 4364c4cbe8461a28d286900bc8ed535934c6d352 | |
parent | 50965d9331adf6826beb3e25a17a321c0fd337dd [diff] [blame] |
Reverse iterator - should be incrementing rather than decrementing. llvm-svn: 150778
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 52a9096..3ab98e1 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -904,9 +904,9 @@ if (!isInsideBundle()) return this; MachineBasicBlock::reverse_instr_iterator MII(this); - --MII; + ++MII; while (MII->isInsideBundle()) - --MII; + ++MII; return &*MII; }