AST: Handle TopLevelCodeDecl in DeclExportabilityVisitor.

This commit is contained in:
Allan Shortlidge
2023-12-09 22:11:19 -08:00
parent a038f7d8c6
commit 3c68c20ef5
2 changed files with 12 additions and 1 deletions

View File

@@ -149,7 +149,6 @@ public:
return true; \
}
UNREACHABLE(Module);
UNREACHABLE(TopLevelCode);
UNREACHABLE(Missing);
UNREACHABLE(MissingMember);
UNREACHABLE(GenericTypeParam);
@@ -165,6 +164,7 @@ public:
// context has already been checked.
#define UNINTERESTING(KIND) \
bool visit##KIND##Decl(const KIND##Decl *D) { return true; }
UNINTERESTING(TopLevelCode);
UNINTERESTING(IfConfig);
UNINTERESTING(Import);
UNINTERESTING(PoundDiagnostic);