[llvm] r368514 - [NFC][CodeGen] Modify the PI++ to ++PI in MachineBlockPlacement::optimizeBranches()

Kang Zhang via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 10 09:23:17 PDT 2019


Author: zhangkang
Date: Sat Aug 10 09:23:17 2019
New Revision: 368514

URL: http://llvm.org/viewvc/llvm-project?rev=368514&view=rev
Log:
[NFC][CodeGen] Modify the PI++ to ++PI in MachineBlockPlacement::optimizeBranches()

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

Modified: llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp?rev=368514&r1=368513&r2=368514&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp Sat Aug 10 09:23:17 2019
@@ -2790,7 +2790,7 @@ void MachineBlockPlacement::optimizeBran
 
           // 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())




More information about the llvm-commits mailing list