diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-24 22:18:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-24 22:18:35 +0000 |
commit | 03f252f1ebd1f95ed53fd7432d55059ac8d009af (patch) | |
tree | 849389bffc5c76c021749baf92489998555637a0 /lib/Analysis | |
parent | dd4a0495060b26085fe2ac4c0bc5297f58bd5e74 (diff) | |
download | external_llvm-03f252f1ebd1f95ed53fd7432d55059ac8d009af.zip external_llvm-03f252f1ebd1f95ed53fd7432d55059ac8d009af.tar.gz external_llvm-03f252f1ebd1f95ed53fd7432d55059ac8d009af.tar.bz2 |
Remove explicit use of BasicBlock::succ_iterator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index c31e555..8c42562 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -25,7 +25,7 @@ bool Loop::contains(const BasicBlock *BB) const { } bool Loop::isLoopExit(const BasicBlock *BB) const { - for (BasicBlock::succ_const_iterator SI = succ_begin(BB), SE = succ_end(BB); + for (succ_const_iterator SI = succ_begin(BB), SE = succ_end(BB); SI != SE; ++SI) { if (!contains(*SI)) return true; @@ -39,7 +39,7 @@ unsigned Loop::getNumBackEdges() const { for (std::vector<BasicBlock*>::const_iterator I = Blocks.begin(), E = Blocks.end(); I != E; ++I) - for (BasicBlock::succ_iterator SI = succ_begin(*I), SE = succ_end(*I); + for (succ_iterator SI = succ_begin(*I), SE = succ_end(*I); SI != SE; ++SI) if (*SI == H) ++NumBackEdges; |