From 555f7495df1c466dcc3e759fe8b8eccd8ef94770 Mon Sep 17 00:00:00 2001 From: Kang Zhang Date: Sat, 10 Aug 2019 16:23:17 +0000 Subject: [PATCH] [NFC][CodeGen] Modify the PI++ to ++PI in MachineBlockPlacement::optimizeBranches() llvm-svn: 368514 --- llvm/lib/CodeGen/MachineBlockPlacement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- 2.7.4