diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-04 03:21:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-04 03:21:31 +0000 |
commit | 9cda4bf8e5d6a3bcedfafc26647900464cdf32e2 (patch) | |
tree | 207ca0351d580077f037dec0fffc346cb61db0a9 /llvm/lib/VMCore/BasicBlock.cpp | |
parent | 18ef3fda572bb598144a5c03576208699373a3ba (diff) | |
download | bcm5719-llvm-9cda4bf8e5d6a3bcedfafc26647900464cdf32e2.tar.gz bcm5719-llvm-9cda4bf8e5d6a3bcedfafc26647900464cdf32e2.zip |
When splitting a basic block, insert the new half immediately after the first
half.
llvm-svn: 11110
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/VMCore/BasicBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp index c83b316672c..04f2034e9e2 100644 --- a/llvm/lib/VMCore/BasicBlock.cpp +++ b/llvm/lib/VMCore/BasicBlock.cpp @@ -231,7 +231,7 @@ BasicBlock *BasicBlock::splitBasicBlock(iterator I, const std::string &BBName) { assert(I != InstList.end() && "Trying to get me to create degenerate basic block!"); - BasicBlock *New = new BasicBlock(BBName, getParent()); + BasicBlock *New = new BasicBlock(BBName, getNext()); // Move all of the specified instructions from the original basic block into // the new basic block. |