@@ -2916,7 +2916,8 @@ static bool createPrespecialized(StringRef UnspecializedName,
29162916 ReabstractionInfo ReInfo (M.getSwiftModule (), M.isWholeModule (), ApplySite (),
29172917 UnspecFunc, Apply.getSubstitutionMap (),
29182918 IsNotSerialized,
2919- /* ConvertIndirectToDirect= */ true , /* dropMetatypeArgs=*/ false );
2919+ /* ConvertIndirectToDirect= */ true ,
2920+ /* dropUnusedArguments=*/ false );
29202921
29212922 if (!ReInfo.canBeSpecialized ())
29222923 return false ;
@@ -3005,7 +3006,7 @@ static bool usePrespecialized(
30053006 funcBuilder.getModule ().isWholeModule (), apply, refF,
30063007 apply.getSubstitutionMap (), IsNotSerialized,
30073008 /* ConvertIndirectToDirect=*/ true ,
3008- /* dropMetatypeArgs =*/ false );
3009+ /* dropUnusedArguments =*/ false );
30093010
30103011 for (auto *SA : refF->getSpecializeAttrs ()) {
30113012 if (!SA->isExported ())
@@ -3149,7 +3150,8 @@ static bool usePrespecialized(
31493150 funcBuilder.getModule ().getSwiftModule (),
31503151 funcBuilder.getModule ().isWholeModule (), apply, refF, newSubstMap,
31513152 apply.getFunction ()->getSerializedKind (),
3152- /* ConvertIndirectToDirect=*/ true , /* dropMetatypeArgs=*/ false , nullptr );
3153+ /* ConvertIndirectToDirect=*/ true ,
3154+ /* dropUnusedArguments=*/ false , nullptr );
31533155
31543156 if (layoutReInfo.getSpecializedType () == reInfo.getSpecializedType ()) {
31553157 layoutMatches.push_back (
@@ -3312,7 +3314,8 @@ void swift::trySpecializeApplyOfGeneric(
33123314 FuncBuilder.getModule ().isWholeModule (), Apply, RefF,
33133315 Apply.getSubstitutionMap (), serializedKind,
33143316 /* ConvertIndirectToDirect=*/ true ,
3315- /* dropMetatypeArgs=*/ canDropMetatypeArgs (Apply, RefF),
3317+ /* dropUnusedArguments=*/
3318+ canDropMetatypeArgs (Apply, RefF),
33163319 &ORE);
33173320 if (!ReInfo.canBeSpecialized ())
33183321 return ;
0 commit comments