@@ -6486,7 +6486,7 @@ ManagedValue SILGenFunction::getThunkedAutoDiffLinearMap(
6486
6486
SILType substFnType = linearMapArg->getType ().substGenericArgs (
6487
6487
thunkSGF.getModule (), subs, thunk->getTypeExpansionContext ());
6488
6488
auto tokenAndCleanups = thunkSGF.emitBeginApplyWithRethrow (
6489
- loc, linearMapArg, substFnType,
6489
+ loc, linearMapArg, substFnType, true ,
6490
6490
SubstitutionMap (), arguments, yields);
6491
6491
auto token = std::get<0 >(tokenAndCleanups);
6492
6492
auto abortCleanup = std::get<1 >(tokenAndCleanups);
@@ -6762,7 +6762,7 @@ SILFunction *SILGenModule::getOrCreateCustomDerivativeThunk(
6762
6762
SmallVector<SILValue, 1 > yields;
6763
6763
// Start inner coroutine execution till the suspend point
6764
6764
auto tokenAndCleanups = thunkSGF.emitBeginApplyWithRethrow (
6765
- loc, fnRef, substFnType /* fnRef->getType()*/ ,
6765
+ loc, fnRef, substFnType /* fnRef->getType()*/ , true ,
6766
6766
subs, arguments, yields);
6767
6767
auto token = std::get<0 >(tokenAndCleanups);
6768
6768
auto abortCleanup = std::get<1 >(tokenAndCleanups);
0 commit comments