@@ -89,8 +89,8 @@ bool swift::isClassWithUnboundGenericParameters(SILType C, SILModule &M) {
89
89
// Try to propagate them to find out the real substitutions required
90
90
// to invoke the method.
91
91
static ArrayRef<Substitution>
92
- getSubstitutionsForCalleee (SILModule &M, CanSILFunctionType GenCalleeType,
93
- SILType ClassInstanceType, ApplyInst *AI) {
92
+ getSubstitutionsForCallee (SILModule &M, CanSILFunctionType GenCalleeType,
93
+ SILType ClassInstanceType, ApplyInst *AI) {
94
94
// *NOTE*:
95
95
// Apply instruction substitutions are for the Member from a protocol or
96
96
// class B, where this member was first defined, before it got overridden by
@@ -251,8 +251,8 @@ bool swift::canDevirtualizeClassMethod(ApplyInst *AI,
251
251
252
252
CanSILFunctionType GenCalleeType = F->getLoweredFunctionType ();
253
253
254
- auto Subs = getSubstitutionsForCalleee (Mod, GenCalleeType,
255
- ClassOrMetatypeType, AI);
254
+ auto Subs = getSubstitutionsForCallee (Mod, GenCalleeType,
255
+ ClassOrMetatypeType, AI);
256
256
257
257
// For polymorphic functions, bail if the number of substitutions is
258
258
// not the same as the number of expected generic parameters.
@@ -301,8 +301,8 @@ SILInstruction *swift::devirtualizeClassMethod(ApplyInst *AI,
301
301
302
302
CanSILFunctionType GenCalleeType = F->getLoweredFunctionType ();
303
303
304
- auto Subs = getSubstitutionsForCalleee (Mod, GenCalleeType,
305
- ClassOrMetatypeType, AI);
304
+ auto Subs = getSubstitutionsForCallee (Mod, GenCalleeType,
305
+ ClassOrMetatypeType, AI);
306
306
auto SubstCalleeType =
307
307
GenCalleeType->substGenericArgs (Mod, Mod.getSwiftModule (), Subs);
308
308
0 commit comments