From 5b155a1ed200c8e65c114d9332e07e2fff133b08 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() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368514 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineBlockPlacement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/MachineBlockPlacement.cpp b/lib/CodeGen/MachineBlockPlacement.cpp index c34166d98dc..2f4060acbd7 100644 --- a/lib/CodeGen/MachineBlockPlacement.cpp +++ b/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.50.1