summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/BasicBlock.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-20 18:25:24 +0000
committerChris Lattner <sabre@nondot.org>2003-11-20 18:25:24 +0000
commit2af517281d6c36313f7ff74337a84c4fac716dbb (patch)
treef6d420f010d81c3328601e8073f8a573831d4223 /llvm/lib/VMCore/BasicBlock.cpp
parent63a0ccff4496816a6774c1370237dd29c7062b09 (diff)
downloadbcm5719-llvm-2af517281d6c36313f7ff74337a84c4fac716dbb.tar.gz
bcm5719-llvm-2af517281d6c36313f7ff74337a84c4fac716dbb.zip
Start using the nicer terminator auto-insertion API
llvm-svn: 10111
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r--llvm/lib/VMCore/BasicBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp
index 63a722b33e4..b00ce51f2f7 100644
--- a/llvm/lib/VMCore/BasicBlock.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud