mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[sil] Replace some nstances of SILBuilder(...) with SILBuilderWithScope(...).
The main thing to notice about these changes is that I always picked the debug scope associated with the location we were using. They should always be in sync.
This commit is contained in:
@@ -220,7 +220,7 @@ SILBasicBlock *swift::splitEdge(TermInst *T, unsigned edgeIdx,
|
||||
SmallVector<SILValue, 16> args;
|
||||
getEdgeArgs(T, edgeIdx, edgeBB, args);
|
||||
|
||||
SILBuilder(edgeBB).createBranch(T->getLoc(), destBB, args);
|
||||
SILBuilderWithScope(edgeBB, T).createBranch(T->getLoc(), destBB, args);
|
||||
|
||||
// Strip the arguments and rewire the branch in the source block.
|
||||
changeBranchTarget(T, edgeIdx, edgeBB, /*PreserveArgs=*/false);
|
||||
|
||||
Reference in New Issue
Block a user