Skip to content

Commit 3131a16

Browse files
committed
Sema: DeclChecker::visitTypeAliasDecl() does everything in the 'first pass'
1 parent 3355a72 commit 3131a16

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4277,16 +4277,16 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
42774277
}
42784278

42794279
void visitTypeAliasDecl(TypeAliasDecl *TAD) {
4280+
if (!IsFirstPass) {
4281+
return;
4282+
}
4283+
42804284
TC.checkDeclAttributesEarly(TAD);
42814285
TC.computeAccessLevel(TAD);
42824286

4283-
if (IsFirstPass)
4284-
TC.validateDecl(TAD);
4285-
4286-
if (!IsFirstPass)
4287-
checkAccessControl(TC, TAD);
4288-
4287+
TC.validateDecl(TAD);
42894288
TC.checkDeclAttributes(TAD);
4289+
checkAccessControl(TC, TAD);
42904290
}
42914291

42924292
void visitAssociatedTypeDecl(AssociatedTypeDecl *assocType) {

0 commit comments

Comments
 (0)