[NFC][CodeGen] Modify the PI++ to ++PI in MachineBlockPlacement::optimizeBranches()
authorKang Zhang <shkzhang@cn.ibm.com>
Sat, 10 Aug 2019 16:23:17 +0000 (16:23 +0000)
committerKang Zhang <shkzhang@cn.ibm.com>
Sat, 10 Aug 2019 16:23:17 +0000 (16:23 +0000)
llvm-svn: 368514

llvm/lib/CodeGen/MachineBlockPlacement.cpp

index c34166d..2f4060a 100644 (file)
@@ -2790,7 +2790,7 @@ void MachineBlockPlacement::optimizeBranches() {
 
           // Update the CFG.
           for (MachineBasicBlock::pred_iterator PI = TBB->pred_begin(),
-               PE = TBB->pred_end(); PI != PE; PI++)
+               PE = TBB->pred_end(); PI != PE; ++PI)
             (*PI)->ReplaceUsesOfBlockWith(TBB, ChainBB);
 
           for (MachineBasicBlock *Succ : TBB->successors())