@@ -765,7 +765,7 @@ swift::tryDevirtualizeClassMethod(FullApplySite AI, SILValue ClassInstance,
765
765
// / \param conformanceRef The (possibly-specialized) conformance
766
766
// / \param requirementSig The generic signature of the requirement
767
767
// / \param witnessThunkSig The generic signature of the witness method
768
- // / \param origSubs The substitutions from the call instruction
768
+ // / \param origSubMap The substitutions from the call instruction
769
769
// / \param isDefaultWitness True if this is a default witness method
770
770
// / \param classWitness The ClassDecl if this is a class witness method
771
771
static SubstitutionMap
@@ -774,15 +774,13 @@ getWitnessMethodSubstitutions(
774
774
ProtocolConformanceRef conformanceRef,
775
775
GenericSignature *requirementSig,
776
776
GenericSignature *witnessThunkSig,
777
- SubstitutionList origSubs ,
777
+ SubstitutionMap origSubMap ,
778
778
bool isDefaultWitness,
779
779
ClassDecl *classWitness) {
780
780
781
781
if (witnessThunkSig == nullptr )
782
782
return SubstitutionMap ();
783
783
784
- auto origSubMap = requirementSig->getSubstitutionMap (origSubs);
785
-
786
784
if (isDefaultWitness)
787
785
return origSubMap;
788
786
@@ -841,7 +839,7 @@ getWitnessMethodSubstitutions(SILModule &Module, ApplySite AI, SILFunction *F,
841
839
auto requirementSig = AI.getOrigCalleeType ()->getGenericSignature ();
842
840
auto witnessThunkSig = witnessFnTy->getGenericSignature ();
843
841
844
- SubstitutionList origSubs = AI.getSubstitutions ();
842
+ SubstitutionMap origSubs = AI.getSubstitutionMap ();
845
843
846
844
auto *mod = Module.getSwiftModule ();
847
845
bool isDefaultWitness =
0 commit comments