Skip to content

Commit 4fa8fb6

Browse files
committed
substituteInputSugarTypeForResult can be static
1 parent 642f58d commit 4fa8fb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Sema/CSApply.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7045,7 +7045,7 @@ Expr *ExprRewriter::finishApply(ApplyExpr *apply, ConcreteDeclRef callee,
70457045
apply->setIsSuper(isSuper);
70467046

70477047
cs.setExprTypes(apply);
7048-
Expr *result = tc.substituteInputSugarTypeForResult(apply);
7048+
Expr *result = TypeChecker::substituteInputSugarTypeForResult(apply);
70497049
cs.cacheExprTypes(result);
70507050

70517051
// If we have a covariant result type, perform the conversion now.

lib/Sema/TypeChecker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ class TypeChecker final : public LazyResolver {
988988
/// If the inputs to an apply expression use a consistent "sugar" type
989989
/// (that is, a typealias or shorthand syntax) equivalent to the result type
990990
/// of the function, set the result type of the expression to that sugar type.
991-
Expr *substituteInputSugarTypeForResult(ApplyExpr *E);
991+
static Expr *substituteInputSugarTypeForResult(ApplyExpr *E);
992992

993993
bool typeCheckAbstractFunctionBodyUntil(AbstractFunctionDecl *AFD,
994994
SourceLoc EndTypeCheckLoc);

0 commit comments

Comments
 (0)