From 1c9ab515de41707c8e04a51694a50479068e891d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 24 Sep 2003 22:03:22 +0000 Subject: [PATCH] Do not use BasicBlock::succ_iterator git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8700 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/BasicBlock.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index ac97ed386e1..c15ce24ce65 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/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;