Do not use BasicBlock::*_iterator, just use *_iterator itself.
Isn't updating copy and pasted code a joy
llvm-svn: 8702
diff --git a/llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp b/llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp
index 6802c4f..74209b7 100644
--- a/llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp
@@ -58,8 +58,7 @@
time++;
d[u]=time;
- for(BasicBlock::succ_iterator vl = succ_begin(u),
- ve = succ_end(u); vl != ve; ++vl){
+ for(succ_iterator vl = succ_begin(u), ve = succ_end(u); vl != ve; ++vl){
BasicBlock *BB = *vl;
if(color[BB]!=GREY && color[BB]!=BLACK){