File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3011,14 +3011,16 @@ CanSILFunctionType swift::buildSILFunctionThunkType(
3011
3011
3012
3012
auto substFormalTypeIntoThunkContext =
3013
3013
[&](CanType t) -> CanType {
3014
- return genericEnv->mapTypeIntoContext (
3014
+ return GenericEnvironment::mapTypeIntoContext (
3015
+ genericEnv,
3015
3016
mapLocalArchetypesOutOfContext (t, baseGenericSig, capturedEnvs))
3016
3017
->getCanonicalType ();
3017
3018
};
3018
3019
auto substLoweredTypeIntoThunkContext =
3019
3020
[&](CanSILFunctionType t) -> CanSILFunctionType {
3020
3021
return cast<SILFunctionType>(
3021
- genericEnv->mapTypeIntoContext (
3022
+ GenericEnvironment::mapTypeIntoContext (
3023
+ genericEnv,
3022
3024
mapLocalArchetypesOutOfContext (t, baseGenericSig, capturedEnvs))
3023
3025
->getCanonicalType ());
3024
3026
};
Original file line number Diff line number Diff line change @@ -1420,7 +1420,8 @@ class FunctionSignaturePartialSpecializer {
1420
1420
SubstitutionMap::get (
1421
1421
SpecializedGenericSig,
1422
1422
[&](SubstitutableType *type) -> Type {
1423
- return CalleeGenericEnv->mapTypeIntoContext (
1423
+ return GenericEnvironment::mapTypeIntoContext (
1424
+ CalleeGenericEnv,
1424
1425
SpecializedGenericSig.getReducedType (type));
1425
1426
},
1426
1427
LookUpConformanceInModule ());
You can’t perform that action at this time.
0 commit comments