diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-20 18:25:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-20 18:25:24 +0000 |
commit | f8485c643412dbff46fe87ea2867445169a5c28e (patch) | |
tree | 47df4c3a7138fa1f6051e38e3faf81613862b616 /lib/VMCore/BasicBlock.cpp | |
parent | adbc0b5287bf36893cdcae2440d48b3cb3489e38 (diff) |
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
Diffstat (limited to 'lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | lib/VMCore/BasicBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index 63a722b33e..b00ce51f2f 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -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 |