summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorKang Zhang <shkzhang@cn.ibm.com>2019-08-10 16:23:17 +0000
committerKang Zhang <shkzhang@cn.ibm.com>2019-08-10 16:23:17 +0000
commit555f7495df1c466dcc3e759fe8b8eccd8ef94770 (patch)
treec54e0b5ea738d4705ac24ffa1ae771142e18ee60 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent8a25eabd42780616954f10e135effbd95edec847 (diff)
downloadbcm5719-llvm-555f7495df1c466dcc3e759fe8b8eccd8ef94770.tar.gz
bcm5719-llvm-555f7495df1c466dcc3e759fe8b8eccd8ef94770.zip
[NFC][CodeGen] Modify the PI++ to ++PI in MachineBlockPlacement::optimizeBranches()
llvm-svn: 368514
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index c34166d98dc..2f4060acbd7 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())
OpenPOWER on IntegriCloud