mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 07:00:45 +00:00
Preserve line number information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131480 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
416b7117b7
commit
c9ea771cb8
@ -180,7 +180,8 @@ BasicBlock *llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum,
|
||||
BasicBlock *NewBB = BasicBlock::Create(TI->getContext(),
|
||||
TIBB->getName() + "." + DestBB->getName() + "_crit_edge");
|
||||
// Create our unconditional branch.
|
||||
BranchInst::Create(DestBB, NewBB);
|
||||
BranchInst *NewBI = BranchInst::Create(DestBB, NewBB);
|
||||
NewBI->setDebugLoc(TI->getDebugLoc());
|
||||
|
||||
// Branch to the new block, breaking the edge.
|
||||
TI->setSuccessor(SuccNum, NewBB);
|
||||
|
Loading…
Reference in New Issue
Block a user