File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1490,7 +1490,9 @@ namespace {
1490
1490
}
1491
1491
1492
1492
CanSILFunctionType setterTy = setterFRef->getType ().castTo <SILFunctionType>();
1493
- SILFunctionConventions setterConv (setterTy, SGF.SGM .M );
1493
+ auto substSetterTy = setterTy->substGenericArgs (SGF.SGM .M , Substitutions,
1494
+ SGF.getTypeExpansionContext ());
1495
+ SILFunctionConventions setterConv (substSetterTy, SGF.SGM .M );
1494
1496
1495
1497
// Emit captures for the setter
1496
1498
SmallVector<SILValue, 4 > capturedArgs;
@@ -1538,8 +1540,6 @@ namespace {
1538
1540
assert (value.isRValue ());
1539
1541
ManagedValue Mval = std::move (value).asKnownRValue (SGF).
1540
1542
getAsSingleValue (SGF, loc);
1541
- auto substSetterTy = setterTy->substGenericArgs (SGF.SGM .M , Substitutions,
1542
- SGF.getTypeExpansionContext ());
1543
1543
auto param = substSetterTy->getParameters ()[0 ];
1544
1544
SILType loweredSubstArgType = Mval.getType ();
1545
1545
if (param.isIndirectInOut ()) {
You can’t perform that action at this time.
0 commit comments