Skip to content

Commit 59f9298

Browse files
committed
SILOptimizer: Workaround for suspect SubstitutionMap usage
1 parent a5ee9ad commit 59f9298

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SILOptimizer/Utils/Generics.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,8 @@ class FunctionSignaturePartialSpecializer {
13991399
SubstitutionMap::get(
14001400
SpecializedGenericSig,
14011401
[&](SubstitutableType *type) -> Type {
1402-
return CalleeGenericEnv->mapTypeIntoContext(type);
1402+
return CalleeGenericEnv->mapTypeIntoContext(
1403+
SpecializedGenericSig.getReducedType(type));
14031404
},
14041405
LookUpConformanceInModule());
14051406
}

0 commit comments

Comments
 (0)