mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 20:20:03 +00:00
Get rid of this for_each loop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21253 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e8fd25f5c5
commit
151c80be81
@ -837,8 +837,8 @@ bool llvm::SimplifyCFG(BasicBlock *BB) {
|
||||
|
||||
// Loop through all of our successors and make sure they know that one
|
||||
// of their predecessors is going away.
|
||||
for_each(succ_begin(BB), succ_end(BB),
|
||||
std::bind2nd(std::mem_fun(&BasicBlock::removePredecessor), BB));
|
||||
for (succ_iterator SI = succ_begin(BB), E = succ_end(BB); SI != E; ++SI)
|
||||
SI->removePredecessor(BB);
|
||||
|
||||
while (!BB->empty()) {
|
||||
Instruction &I = BB->back();
|
||||
|
Loading…
Reference in New Issue
Block a user