[llvm-commits] CVS: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Apr 12 11:51:53 PDT 2005
Changes in directory llvm/lib/Transforms/Utils:
SimplifyCFG.cpp updated: 1.66 -> 1.67
---
Log message:
Get rid of this for_each loop
---
Diffs of the changes: (+2 -2)
SimplifyCFG.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.66 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.67
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.66 Sun Feb 27 00:17:04 2005
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp Tue Apr 12 13:51:33 2005
@@ -837,8 +837,8 @@
// 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();
More information about the llvm-commits
mailing list