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 | e24c92a6984e0ddcf565bba23de4d5cb531c6c17 (patch) | |
tree | bb7d39e64ad615d2948794f92a83c2c0da12823b /lib | |
parent | 8e8f86522791e0d3c74c72aa9f5040071592ef40 (diff) | |
download | external_llvm-e24c92a6984e0ddcf565bba23de4d5cb531c6c17.zip external_llvm-e24c92a6984e0ddcf565bba23de4d5cb531c6c17.tar.gz external_llvm-e24c92a6984e0ddcf565bba23de4d5cb531c6c17.tar.bz2 |
remove use of BasicBlock::getNext
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Instrumentation/RSProfiling.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Transforms/Instrumentation/RSProfiling.cpp b/lib/Transforms/Instrumentation/RSProfiling.cpp index 680347e..f97b2bc 100644 --- a/lib/Transforms/Instrumentation/RSProfiling.cpp +++ b/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: |