summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-24 22:06:25 +0000
committerChris Lattner <sabre@nondot.org>2003-09-24 22:06:25 +0000
commita940095ae2c1eaacb38cba0a7916b91772431d91 (patch)
tree737132c05cc95c3e12befcdc4ed0d3be252dc865 /llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
parentc3634809e6c4a6ecc47654dda24e89eeab6821bd (diff)
downloadbcm5719-llvm-a940095ae2c1eaacb38cba0a7916b91772431d91.tar.gz
bcm5719-llvm-a940095ae2c1eaacb38cba0a7916b91772431d91.zip
Do not use BasicBlock::*_iterator, just use *_iterator itself.
Isn't updating copy and pasted code a joy llvm-svn: 8702
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp3
1 files changed, 1 insertions, 2 deletions
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);
OpenPOWER on IntegriCloud