mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +00:00
remove use of BasicBlock::getNext
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36202 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e8f865227
commit
e24c92a698
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user