@@ -2916,7 +2916,8 @@ static bool createPrespecialized(StringRef UnspecializedName,
2916
2916
ReabstractionInfo ReInfo (M.getSwiftModule (), M.isWholeModule (), ApplySite (),
2917
2917
UnspecFunc, Apply.getSubstitutionMap (),
2918
2918
IsNotSerialized,
2919
- /* ConvertIndirectToDirect= */ true , /* dropMetatypeArgs=*/ false );
2919
+ /* ConvertIndirectToDirect= */ true ,
2920
+ /* dropUnusedArguments=*/ false );
2920
2921
2921
2922
if (!ReInfo.canBeSpecialized ())
2922
2923
return false ;
@@ -3005,7 +3006,7 @@ static bool usePrespecialized(
3005
3006
funcBuilder.getModule ().isWholeModule (), apply, refF,
3006
3007
apply.getSubstitutionMap (), IsNotSerialized,
3007
3008
/* ConvertIndirectToDirect=*/ true ,
3008
- /* dropMetatypeArgs =*/ false );
3009
+ /* dropUnusedArguments =*/ false );
3009
3010
3010
3011
for (auto *SA : refF->getSpecializeAttrs ()) {
3011
3012
if (!SA->isExported ())
@@ -3149,7 +3150,8 @@ static bool usePrespecialized(
3149
3150
funcBuilder.getModule ().getSwiftModule (),
3150
3151
funcBuilder.getModule ().isWholeModule (), apply, refF, newSubstMap,
3151
3152
apply.getFunction ()->getSerializedKind (),
3152
- /* ConvertIndirectToDirect=*/ true , /* dropMetatypeArgs=*/ false , nullptr );
3153
+ /* ConvertIndirectToDirect=*/ true ,
3154
+ /* dropUnusedArguments=*/ false , nullptr );
3153
3155
3154
3156
if (layoutReInfo.getSpecializedType () == reInfo.getSpecializedType ()) {
3155
3157
layoutMatches.push_back (
@@ -3312,7 +3314,8 @@ void swift::trySpecializeApplyOfGeneric(
3312
3314
FuncBuilder.getModule ().isWholeModule (), Apply, RefF,
3313
3315
Apply.getSubstitutionMap (), serializedKind,
3314
3316
/* ConvertIndirectToDirect=*/ true ,
3315
- /* dropMetatypeArgs=*/ canDropMetatypeArgs (Apply, RefF),
3317
+ /* dropUnusedArguments=*/
3318
+ canDropMetatypeArgs (Apply, RefF),
3316
3319
&ORE);
3317
3320
if (!ReInfo.canBeSpecialized ())
3318
3321
return ;
0 commit comments