[llvm-commits] [llvm] r150778 - /llvm/trunk/lib/CodeGen/MachineInstr.cpp

Lang Hames lhames at gmail.com
Thu Feb 16 17:54:11 PST 2012


Author: lhames
Date: Thu Feb 16 19:54:11 2012
New Revision: 150778

URL: http://llvm.org/viewvc/llvm-project?rev=150778&view=rev
Log:
Reverse iterator - should be incrementing rather than decrementing.

Modified:
    llvm/trunk/lib/CodeGen/MachineInstr.cpp

Modified: llvm/trunk/lib/CodeGen/MachineInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineInstr.cpp?rev=150778&r1=150777&r2=150778&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Thu Feb 16 19:54:11 2012
@@ -904,9 +904,9 @@
   if (!isInsideBundle())
     return this;
   MachineBasicBlock::reverse_instr_iterator MII(this);
-  --MII;
+  ++MII;
   while (MII->isInsideBundle())
-    --MII;
+    ++MII;
   return &*MII;
 }
 





More information about the llvm-commits mailing list