From a940095ae2c1eaacb38cba0a7916b91772431d91 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 24 Sep 2003 22:06:25 +0000 Subject: Do not use BasicBlock::*_iterator, just use *_iterator itself. Isn't updating copy and pasted code a joy llvm-svn: 8702 --- llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp') diff --git a/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp b/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp index aa46048ae03..962996247ce 100644 --- a/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp +++ b/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp @@ -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); -- cgit v1.2.3