We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3131a16 commit 63db382Copy full SHA for 63db382
lib/Sema/TypeCheckDecl.cpp
@@ -6183,12 +6183,12 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
6183
6184
void visitEnumElementDecl(EnumElementDecl *EED) {
6185
if (!IsFirstPass) {
6186
- checkAccessControl(TC, EED);
6187
return;
6188
}
6189
6190
TC.validateDecl(EED);
6191
TC.checkDeclAttributes(EED);
+ checkAccessControl(TC, EED);
6192
6193
6194
void visitExtensionDecl(ExtensionDecl *ED) {
0 commit comments