mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
Start using the nicer terminator auto-insertion API
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10111 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -243,7 +243,7 @@ BasicBlock *BasicBlock::splitBasicBlock(iterator I, const std::string &BBName) {
|
||||
} while (Inst != &*I); // Loop until we move the specified instruction.
|
||||
|
||||
// Add a branch instruction to the newly formed basic block.
|
||||
InstList.push_back(new BranchInst(New));
|
||||
new BranchInst(New, 0, 0, this);
|
||||
|
||||
// Now we must loop through all of the successors of the New block (which
|
||||
// _were_ the successors of the 'this' block), and update any PHI nodes in
|
||||
|
Reference in New Issue
Block a user