mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-03 09:21:02 +00:00
When splitting a basic block, insert the new half immediately after the first
half. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11110 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5e923dee60
commit
c6aa017eae
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user