Skip to content

Commit 0f1837c

Browse files
author
Davide Italiano
committed
[SILInliner] Also pass a SILBuilderContext.
Pointed out by Michael Gottesman.
1 parent 8e14cc5 commit 0f1837c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Utils/SILInliner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ SILValue SILInlineCloner::borrowFunctionArgument(SILValue callArg,
560560
return callArg;
561561
}
562562

563-
SILBuilderWithScope beginBuilder(AI.getInstruction());
563+
SILBuilderWithScope beginBuilder(AI.getInstruction(), getBuilder());
564564
auto *borrow = beginBuilder.createBeginBorrow(AI.getLoc(), callArg);
565565
if (auto *tryAI = dyn_cast<TryApplyInst>(AI)) {
566566
SILBuilderWithScope returnBuilder(tryAI->getNormalBB()->begin());

0 commit comments

Comments
 (0)