Skip to content

Commit 7837876

Browse files
committed
Make handleSILGenericParams a static method
1 parent b3c2db9 commit 7837876

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Sema/TypeChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ bool swift::performTypeLocChecking(ASTContext &Ctx, TypeLoc &T,
615615
GenericEnvironment *
616616
swift::handleSILGenericParams(ASTContext &Ctx, GenericParamList *genericParams,
617617
DeclContext *DC) {
618-
return createTypeChecker(Ctx).handleSILGenericParams(genericParams, DC);
618+
return TypeChecker::handleSILGenericParams(genericParams, DC);
619619
}
620620

621621
void swift::typeCheckPatternBinding(PatternBindingDecl *PBD,

lib/Sema/TypeChecker.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,8 @@ class TypeChecker final : public LazyResolver {
795795
void checkUnsupportedProtocolType(GenericParamList *genericParams);
796796

797797
/// Expose TypeChecker's handling of GenericParamList to SIL parsing.
798-
GenericEnvironment *handleSILGenericParams(GenericParamList *genericParams,
799-
DeclContext *DC);
798+
static GenericEnvironment *
799+
handleSILGenericParams(GenericParamList *genericParams, DeclContext *DC);
800800

801801
/// Resolve a reference to the given type declaration within a particular
802802
/// context.

0 commit comments

Comments
 (0)