Skip to content

Commit 1d5defb

Browse files
author
git apple-llvm automerger
committed
Merge commit 'b46902117c37' from llvm.org/main into next
2 parents 006aeef + b469021 commit 1d5defb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/IR/BasicBlock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ BasicBlock *BasicBlock::splitBasicBlock(iterator I, const Twine &BBName,
415415
DebugLoc Loc = I->getDebugLoc();
416416
// Move all of the specified instructions from the original basic block into
417417
// the new basic block.
418-
New->getInstList().splice(New->end(), this->getInstList(), I, end());
418+
New->splice(New->end(), this, I, end());
419419

420420
// Add a branch instruction to the newly formed basic block.
421421
BranchInst *BI = BranchInst::Create(New, this);
@@ -444,7 +444,7 @@ BasicBlock *BasicBlock::splitBasicBlockBefore(iterator I, const Twine &BBName) {
444444
DebugLoc Loc = I->getDebugLoc();
445445
// Move all of the specified instructions from the original basic block into
446446
// the new basic block.
447-
New->getInstList().splice(New->end(), this->getInstList(), begin(), I);
447+
New->splice(New->end(), this, begin(), I);
448448

449449
// Loop through all of the predecessors of the 'this' block (which will be the
450450
// predecessors of the New block), replace the specified successor 'this'

0 commit comments

Comments
 (0)