[llvm-commits] CVS: llvm/lib/Analysis/LoopInfo.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Apr 18 17:22:01 PDT 2004


Changes in directory llvm/lib/Analysis:

LoopInfo.cpp updated: 1.52 -> 1.53

---
Log message:

Fix computation of exit blocks


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/Analysis/LoopInfo.cpp
diff -u llvm/lib/Analysis/LoopInfo.cpp:1.52 llvm/lib/Analysis/LoopInfo.cpp:1.53
--- llvm/lib/Analysis/LoopInfo.cpp:1.52	Sun Apr 18 17:13:35 2004
+++ llvm/lib/Analysis/LoopInfo.cpp	Sun Apr 18 17:21:41 2004
@@ -331,12 +331,12 @@
 /// getExitBlocks - Return all of the successor blocks of this loop.  These
 /// are the blocks _outside of the current loop_ which are branched to.
 ///
-void Loop::getExitBlocks(std::vector<BasicBlock*> &Blocks) const {
+void Loop::getExitBlocks(std::vector<BasicBlock*> &ExitBlocks) const {
   for (std::vector<BasicBlock*>::const_iterator BI = Blocks.begin(),
          BE = Blocks.end(); BI != BE; ++BI)
     for (succ_iterator I = succ_begin(*BI), E = succ_end(*BI); I != E; ++I)
       if (!contains(*I))               // Not in current loop?
-        Blocks.push_back(*I);          // It must be an exit block...
+        ExitBlocks.push_back(*I);          // It must be an exit block...
 }
 
 





More information about the llvm-commits mailing list