diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-04-18 22:21:41 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-04-18 22:21:41 +0000 |
| commit | d6ce359d3b9d40495d72c3d10ee3f6372c774a26 (patch) | |
| tree | 43e881c8a2065b46808df1b6c223222626e87fa2 /llvm/lib/Analysis | |
| parent | 35eaa55cfc8520d31e9f96a2c022de92c5bd9bbb (diff) | |
| download | bcm5719-llvm-d6ce359d3b9d40495d72c3d10ee3f6372c774a26.tar.gz bcm5719-llvm-d6ce359d3b9d40495d72c3d10ee3f6372c774a26.zip | |
Fix computation of exit blocks
llvm-svn: 13047
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/LoopInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp index 3fc9673d022..270a142ad2d 100644 --- a/llvm/lib/Analysis/LoopInfo.cpp +++ b/llvm/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... } |

