[llvm-commits] CVS: llvm/lib/VMCore/BasicBlock.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Sep 24 17:04:01 PDT 2003


Changes in directory llvm/lib/VMCore:

BasicBlock.cpp updated: 1.32 -> 1.33

---
Log message:

Do not use BasicBlock::succ_iterator


---
Diffs of the changes:

Index: llvm/lib/VMCore/BasicBlock.cpp
diff -u llvm/lib/VMCore/BasicBlock.cpp:1.32 llvm/lib/VMCore/BasicBlock.cpp:1.33
--- llvm/lib/VMCore/BasicBlock.cpp:1.32	Sat Aug 23 22:41:39 2003
+++ llvm/lib/VMCore/BasicBlock.cpp	Wed Sep 24 17:03:22 2003
@@ -241,8 +241,7 @@
   // successors.  If there were PHI nodes in the successors, then they need to
   // know that incoming branches will be from New, not from Old.
   //
-  for (BasicBlock::succ_iterator I = succ_begin(New), E = succ_end(New);
-       I != E; ++I) {
+  for (succ_iterator I = succ_begin(New), E = succ_end(New); I != E; ++I) {
     // Loop over any phi nodes in the basic block, updating the BB field of
     // incoming values...
     BasicBlock *Successor = *I;





More information about the llvm-commits mailing list