summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-08-12 04:32:37 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-08-12 04:32:37 +0000
commitc700490f485f78e1d6d1b6577d17ef76066bcf1f (patch)
treecb801fcb9b78b8803a9753f4333a0baaf96643a2 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent0da5afe7172f254226c63f8dcb92d6729d02b959 (diff)
downloadbcm5719-llvm-c700490f485f78e1d6d1b6577d17ef76066bcf1f.tar.gz
bcm5719-llvm-c700490f485f78e1d6d1b6577d17ef76066bcf1f.zip
Use the range variant of remove_if instead of unpacking begin/end
No functionality change is intended. llvm-svn: 278475
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index d241e377336..2adbe48dc7f 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -790,10 +790,10 @@ MachineBasicBlock *MachineBlockPlacement::selectBestCandidateBlock(
// worklist of already placed entries.
// FIXME: If this shows up on profiles, it could be folded (at the cost of
// some code complexity) into the loop below.
- WorkList.erase(std::remove_if(WorkList.begin(), WorkList.end(),
- [&](MachineBasicBlock *BB) {
- return BlockToChain.lookup(BB) == &Chain;
- }),
+ WorkList.erase(remove_if(WorkList,
+ [&](MachineBasicBlock *BB) {
+ return BlockToChain.lookup(BB) == &Chain;
+ }),
WorkList.end());
if (WorkList.empty())
OpenPOWER on IntegriCloud