diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 3fc9673d022..270a142ad2d 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 &Blocks) const { +void Loop::getExitBlocks(std::vector &ExitBlocks) const { for (std::vector::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... }