diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-24 22:03:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-24 22:03:22 +0000 |
commit | 64d88bc788ed017e5672a221a50367c997fb11ba (patch) | |
tree | dd6b05f9e2b4b2eec59e2f0eb23509f531debf35 /llvm/lib/VMCore/BasicBlock.cpp | |
parent | 974bc6682e0dc2669dc72d7f38bb79d6d08adca8 (diff) | |
download | bcm5719-llvm-64d88bc788ed017e5672a221a50367c997fb11ba.tar.gz bcm5719-llvm-64d88bc788ed017e5672a221a50367c997fb11ba.zip |
Do not use BasicBlock::succ_iterator
llvm-svn: 8700
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/VMCore/BasicBlock.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp index ac97ed386e1..c15ce24ce65 100644 --- a/llvm/lib/VMCore/BasicBlock.cpp +++ b/llvm/lib/VMCore/BasicBlock.cpp @@ -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; |