[clang] [Clang] Don't treat a declaration that declares nothing as an invalid statement (PR #224682)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 24 07:14:01 PDT 2026
================
@@ -78,7 +78,8 @@ StmtResult Sema::ActOnDeclStmt(DeclGroupPtrTy dg, SourceLocation StartLoc,
DeclGroupRef DG = dg.get();
// If we have an invalid decl, just return an error.
- if (DG.isNull()) return StmtError();
+ if (DG.isNull())
+ return StmtError();
----------------
AaronBallman wrote:
Might as well back this change out given it's just formatting.
https://github.com/llvm/llvm-project/pull/224682
More information about the cfe-commits
mailing list