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 3355a72 commit 3131a16Copy full SHA for 3131a16
lib/Sema/TypeCheckDecl.cpp
@@ -4277,16 +4277,16 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
4277
}
4278
4279
void visitTypeAliasDecl(TypeAliasDecl *TAD) {
4280
+ if (!IsFirstPass) {
4281
+ return;
4282
+ }
4283
+
4284
TC.checkDeclAttributesEarly(TAD);
4285
TC.computeAccessLevel(TAD);
4286
- if (IsFirstPass)
- TC.validateDecl(TAD);
-
- if (!IsFirstPass)
4287
- checkAccessControl(TC, TAD);
4288
+ TC.validateDecl(TAD);
4289
TC.checkDeclAttributes(TAD);
+ checkAccessControl(TC, TAD);
4290
4291
4292
void visitAssociatedTypeDecl(AssociatedTypeDecl *assocType) {
0 commit comments