mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Fix bug I introduced
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3719 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7c26898401
commit
b2a0fbea11
@ -282,9 +282,6 @@ void insertBB(Edge ed,
|
||||
TerminatorInst *TI=BB1->getTerminator();
|
||||
BasicBlock *newBB=new BasicBlock(ctr, BB1->getParent());
|
||||
|
||||
//get code for the new BB
|
||||
edgeCode->getCode(rInst, countInst, BB1->getParent(), newBB, numPaths, Methno);
|
||||
|
||||
//Is terminator a branch instruction?
|
||||
//then we need to change branch destinations to include new BB
|
||||
|
||||
@ -310,6 +307,10 @@ void insertBB(Edge ed,
|
||||
newBB->getInstList().push_back(newBI2);
|
||||
}
|
||||
|
||||
//get code for the new BB
|
||||
edgeCode->getCode(rInst, countInst, BB1->getParent(), newBB, numPaths, Methno);
|
||||
|
||||
|
||||
//std::cerr<<"After casting\n";
|
||||
//get code for the new BB
|
||||
//now iterate over BB2, and set its Phi nodes right
|
||||
|
Loading…
x
Reference in New Issue
Block a user