forked from OSchip/llvm-project
[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:
parent
ce410b910d
commit
92fed06f80
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue