From: Kang Zhang Date: Sat, 10 Aug 2019 16:23:17 +0000 (+0000) Subject: [NFC][CodeGen] Modify the PI++ to ++PI in MachineBlockPlacement::optimizeBranches() X-Git-Tag: llvmorg-11-init~12195 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=555f7495df1c466dcc3e759fe8b8eccd8ef94770;p=platform%2Fupstream%2Fllvm.git [NFC][CodeGen] Modify the PI++ to ++PI in MachineBlockPlacement::optimizeBranches() llvm-svn: 368514 --- diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp index c34166d..2f4060a 100644 --- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp +++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp @@ -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())