commit | a940095ae2c1eaacb38cba0a7916b91772431d91 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Sep 24 22:06:25 2003 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Sep 24 22:06:25 2003 +0000 |
tree | 737132c05cc95c3e12befcdc4ed0d3be252dc865 | |
parent | c3634809e6c4a6ecc47654dda24e89eeab6821bd [diff] [blame] |
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/CombineBranch.cpp b/llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp index f6f3016..16f98e7 100644 --- a/llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp +++ b/llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp
@@ -57,8 +57,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;