]> granicus.if.org Git - llvm/commitdiff
[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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368514 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineBlockPlacement.cpp

index c34166d98dc55a832ef845cd4724feb9d6ca38b1..2f4060acbd731a0e2dd47eea957ec3819b08b380 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())