Author: Iain Sandoe Date: 2022-04-11T10:06:23+01:00 New Revision: 92fed06f800aa2d0fd29f9e3eac8323cba64b167
URL: https://github.com/llvm/llvm-project/commit/92fed06f800aa2d0fd29f9e3eac8323cba64b167 DIFF: https://github.com/llvm/llvm-project/commit/92fed06f800aa2d0fd29f9e3eac8323cba64b167.diff LOG: [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). Added: Modified: clang/lib/Sema/SemaModule.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/SemaModule.cpp b/clang/lib/Sema/SemaModule.cpp index a9d3540e2ef6e..b0e7d30526a3c 100644 --- a/clang/lib/Sema/SemaModule.cpp +++ b/clang/lib/Sema/SemaModule.cpp @@ -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); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits