Skip to content

Commit 63db382

Browse files
committed
Sema: DeclChecker::visitEnumElementDecl() does everything in the 'first pass'
1 parent 3131a16 commit 63db382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6183,12 +6183,12 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
61836183

61846184
void visitEnumElementDecl(EnumElementDecl *EED) {
61856185
if (!IsFirstPass) {
6186-
checkAccessControl(TC, EED);
61876186
return;
61886187
}
61896188

61906189
TC.validateDecl(EED);
61916190
TC.checkDeclAttributes(EED);
6191+
checkAccessControl(TC, EED);
61926192
}
61936193

61946194
void visitExtensionDecl(ExtensionDecl *ED) {

0 commit comments

Comments
 (0)