Do not use BasicBlock::*_iterator, just use *_iterator itself.

Isn't updating copy and pasted code a joy


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8702 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-09-24 22:06:25 +00:00
parent 34ce14b019
commit f8b5b6ddb4
4 changed files with 4 additions and 8 deletions
@@ -98,8 +98,7 @@ bool ProfilePaths::runOnFunction(Function &F){
Node *nd=findBB(nodes, BB);
assert(nd && "No node for this edge!");
for(BasicBlock::succ_iterator s=succ_begin(BB), se=succ_end(BB);
s!=se; ++s){
for(succ_iterator s=succ_begin(BB), se=succ_end(BB); s!=se; ++s){
Node *nd2=findBB(nodes,*s);
assert(nd2 && "No node for this edge!");
Edge ed(nd,nd2,0);