[C++20][Modules] Remove an empty statement [NFC].

This addresses a post commit review comment by removing an unused and empty
'else' (replaced with a comment).
This commit is contained in:
Iain Sandoe 2022-04-11 08:56:50 +01:00
parent ce410b910d
commit 92fed06f80
1 changed files with 1 additions and 2 deletions

View File

@ -858,8 +858,7 @@ static bool checkExportedDecl(Sema &S, Decl *D, SourceLocation BlockStart) {
// We don't allow an empty anonymous namespace (we don't allow decls
// in them either, but that's handled in the recursion).
diagExportedUnnamedDecl(S, UnnamedDeclKind::Namespace, D, BlockStart);
else
; // We allow an empty named namespace decl.
// We allow an empty named namespace decl.
} else if (DC->getRedeclContext()->isFileContext() && !isa<EnumDecl>(D))
return checkExportedDeclContext(S, DC, BlockStart);
}