Skip to content

Commit

Permalink
[C++20][Modules] Remove an empty statement [NFC].
Browse files Browse the repository at this point in the history
This addresses a post commit review comment by removing an unused and empty
'else' (replaced with a comment).
  • Loading branch information
iains committed Apr 11, 2022
1 parent ce410b9 commit 92fed06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clang/lib/Sema/SemaModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 92fed06

Please sign in to comment.