From: Lang Hames Date: Fri, 17 Feb 2012 01:54:11 +0000 (+0000) Subject: Reverse iterator - should be incrementing rather than decrementing. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=00195d828b934455da597dbba72f1aade4e53393;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 52a90960ec5..3ab98e1bf57 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; }