File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class AbstractFunction {
41
41
};
42
42
unsigned TheKind : 2 ;
43
43
unsigned IsRethrows : 1 ;
44
- unsigned ParamCount : 28 ;
44
+ unsigned ParamCount : 2 ;
45
45
46
46
public:
47
47
explicit AbstractFunction (Kind kind, Expr *fn)
@@ -54,7 +54,7 @@ class AbstractFunction {
54
54
explicit AbstractFunction (AbstractFunctionDecl *fn)
55
55
: TheKind(Kind::Function),
56
56
IsRethrows(fn->getAttrs ().hasAttribute<RethrowsAttr>()),
57
- ParamCount(fn->getNumParameterLists () ) {
57
+ ParamCount(fn->getImplicitSelfDecl () ? 2 : 1 ) {
58
58
TheFunction = fn;
59
59
}
60
60
@@ -926,7 +926,7 @@ class Context {
926
926
}
927
927
928
928
return Context (getKindForFunctionBody (
929
- D->getInterfaceType (), D->getNumParameterLists () ));
929
+ D->getInterfaceType (), D->getImplicitSelfDecl () ? 2 : 1 ));
930
930
}
931
931
932
932
static Context forInitializer (Initializer *init) {
You can’t perform that action at this time.
0 commit comments