summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-17 17:54:12 +0000
committerChris Lattner <sabre@nondot.org>2007-04-17 17:54:12 +0000
commit24e2d9ca037581dc212c7e2c880ee91b836a26b3 (patch)
tree3c89b3de1be1b513e571ccf0bef5a8b7b4834445 /llvm/lib/Transforms/Instrumentation
parent672db8eab508e76567c6c08c2f9ff93688ba8f5f (diff)
downloadbcm5719-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.cpp7
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:
OpenPOWER on IntegriCloud