Skip to content

Commit d8d6da8

Browse files
committed
SIL: Preserve ApplyOptions in a couple more places
Noticed by inspection.
1 parent 8b4d589 commit d8d6da8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/IRGen/LoadableByAddress.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2540,7 +2540,8 @@ void LoadableByAddress::recreateSingleApply(
25402540
applyBuilder.createTryApply(
25412541
castedApply->getLoc(), callee,
25422542
applySite.getSubstitutionMap(), callArgs,
2543-
castedApply->getNormalBB(), castedApply->getErrorBB());
2543+
castedApply->getNormalBB(), castedApply->getErrorBB(),
2544+
castedApply->getApplyOptions());
25442545
break;
25452546
}
25462547
case SILInstructionKind::BeginApplyInst: {

lib/Serialization/DeserializeSIL.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,8 @@ bool SILDeserializer::readSILInstruction(SILFunction *Fn,
15511551
SubstitutionMap Substitutions = MF->getSubstitutionMap(NumSubs);
15521552

15531553
ResultInst = Builder.createTryApply(Loc, getLocalValue(ValID, FnTy),
1554-
Substitutions, Args, normalBB, errorBB);
1554+
Substitutions, Args, normalBB, errorBB,
1555+
ApplyOpts);
15551556
break;
15561557
}
15571558
case SILInstructionKind::PartialApplyInst: {

0 commit comments

Comments
 (0)