aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/LoopInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-18 22:21:41 +0000
committerChris Lattner <sabre@nondot.org>2004-04-18 22:21:41 +0000
commit343c0cfa199307550d434408bb327e262d5c57db (patch)
treec2ad8124e844098b7a8291bfb814d55b2d31a69b /lib/Analysis/LoopInfo.cpp
parent5fa802fe279f10f402e039bc931aa57c0e424bf5 (diff)
downloadexternal_llvm-343c0cfa199307550d434408bb327e262d5c57db.zip
external_llvm-343c0cfa199307550d434408bb327e262d5c57db.tar.gz
external_llvm-343c0cfa199307550d434408bb327e262d5c57db.tar.bz2
Fix computation of exit blocks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopInfo.cpp')
-rw-r--r--lib/Analysis/LoopInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp
index 3fc9673..270a142 100644
--- a/lib/Analysis/LoopInfo.cpp
+++ b/lib/Analysis/LoopInfo.cpp
@@ -331,12 +331,12 @@ void LoopInfo::removeBlock(BasicBlock *BB) {
/// 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...
}