Skip to content

Commit 3355a72

Browse files
committed
Sema: DeclChecker::visitSubscriptDecl() does everything in the 'first pass'
1 parent 025555f commit 3355a72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4268,13 +4268,12 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
42684268

42694269
void visitSubscriptDecl(SubscriptDecl *SD) {
42704270
if (!IsFirstPass) {
4271-
checkAccessControl(TC, SD);
42724271
return;
42734272
}
42744273

42754274
TC.validateDecl(SD);
4276-
42774275
TC.checkDeclAttributes(SD);
4276+
checkAccessControl(TC, SD);
42784277
}
42794278

42804279
void visitTypeAliasDecl(TypeAliasDecl *TAD) {

0 commit comments

Comments
 (0)