projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8fd25f
)
Get rid of this for_each loop
author
Chris Lattner
<sabre@nondot.org>
Tue, 12 Apr 2005 18:51:33 +0000
(18:51 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 12 Apr 2005 18:51:33 +0000
(18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21253
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index 4954c7262a3f030331fd8ae685d8f64b083aadbe..12af5b04d59985eccda19c39fd2e573c84774ee5 100644
(file)
--- a/
lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/
lib/Transforms/Utils/SimplifyCFG.cpp
@@
-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();