@@ -310,8 +310,7 @@ Type TypeResolution::resolveDependentMemberType(
310310 }
311311 }
312312
313- return TypeChecker::substMemberTypeWithBase (DC->getParentModule (), concrete,
314- baseTy);
313+ return TypeChecker::substMemberTypeWithBase (concrete, baseTy);
315314}
316315
317316bool TypeResolution::areSameType (Type type1, Type type2) const {
@@ -580,7 +579,7 @@ Type TypeResolution::resolveTypeInContext(TypeDecl *typeDecl,
580579
581580 // Finally, substitute the base type into the member type.
582581 return TypeChecker::substMemberTypeWithBase (
583- fromDC-> getParentModule (), typeDecl, selfType, /* useArchetypes=*/ false );
582+ typeDecl, selfType, /* useArchetypes=*/ false );
584583}
585584
586585// / This function checks if a bound generic type is UnsafePointer<Void> or
@@ -1872,8 +1871,7 @@ static Type resolveQualifiedIdentTypeRepr(const TypeResolution &resolution,
18721871 // Phase 2: If a declaration has already been bound, use it.
18731872 if (auto *typeDecl = repr->getBoundDecl ()) {
18741873 auto memberType =
1875- TypeChecker::substMemberTypeWithBase (DC->getParentModule (), typeDecl,
1876- parentTy);
1874+ TypeChecker::substMemberTypeWithBase (typeDecl, parentTy);
18771875 return maybeDiagnoseBadMemberType (typeDecl, memberType, nullptr );
18781876 }
18791877
@@ -5796,8 +5794,7 @@ NeverNullType TypeResolver::buildProtocolType(
57965794 return MetatypeType::get (instanceType, storedRepr);
57975795}
57985796
5799- Type TypeChecker::substMemberTypeWithBase (ModuleDecl *module ,
5800- TypeDecl *member,
5797+ Type TypeChecker::substMemberTypeWithBase (TypeDecl *member,
58015798 Type baseTy,
58025799 bool useArchetypes) {
58035800 Type sugaredBaseTy = baseTy;
0 commit comments