diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-04-17 17:54:12 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-04-17 17:54:12 +0000 |
| commit | 24e2d9ca037581dc212c7e2c880ee91b836a26b3 (patch) | |
| tree | 3c89b3de1be1b513e571ccf0bef5a8b7b4834445 /llvm/lib/Transforms/Instrumentation | |
| parent | 672db8eab508e76567c6c08c2f9ff93688ba8f5f (diff) | |
| download | bcm5719-llvm-24e2d9ca037581dc212c7e2c880ee91b836a26b3.tar.gz bcm5719-llvm-24e2d9ca037581dc212c7e2c880ee91b836a26b3.zip | |
remove use of BasicBlock::getNext
llvm-svn: 36202
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/RSProfiling.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp index 680347ebebb..f97b2bcd3e7 100644 --- a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp @@ -455,10 +455,11 @@ void ProfilerRS::ProcessBackEdge(BasicBlock* src, BasicBlock* dst, Function& F) // add in edge from C using x in A' //a: - BasicBlock* bbC = new BasicBlock("choice", &F, src->getNext() ); + Function::iterator BBN = src; ++BBN; + BasicBlock* bbC = new BasicBlock("choice", &F, BBN); //ChoicePoints.insert(bbC); - BasicBlock* bbCp = - new BasicBlock("choice", &F, cast<BasicBlock>(Translate(src))->getNext() ); + BBN = cast<BasicBlock>(Translate(src)); + BasicBlock* bbCp = new BasicBlock("choice", &F, ++BBN); ChoicePoints.insert(bbCp); //b: |

