Do not use BasicBlock::succ_iterator

llvm-svn: 8700
This commit is contained in:
Chris Lattner 2003-09-24 22:03:22 +00:00
parent 974bc6682e
commit 64d88bc788
1 changed files with 1 additions and 2 deletions

View File

@ -241,8 +241,7 @@ BasicBlock *BasicBlock::splitBasicBlock(iterator I, const std::string &BBName) {
// successors. If there were PHI nodes in the successors, then they need to
// know that incoming branches will be from New, not from Old.
//
for (BasicBlock::succ_iterator I = succ_begin(New), E = succ_end(New);
I != E; ++I) {
for (succ_iterator I = succ_begin(New), E = succ_end(New); I != E; ++I) {
// Loop over any phi nodes in the basic block, updating the BB field of
// incoming values...
BasicBlock *Successor = *I;