================ @@ -1190,6 +1190,11 @@ void Sema::ActOnPragmaAttributePop(SourceLocation PragmaLoc, void Sema::AddPragmaAttributes(Scope *S, Decl *D) { if (PragmaAttributeStack.empty()) return; + + if (ParmVarDecl *P = dyn_cast<ParmVarDecl>(D)) + if (P->getIdentifier() == nullptr && P->getType()->isVoidType()) ---------------- erichkeane wrote:
is the identifier-check necessary? Identifier on a void parameter is invalid. https://github.com/llvm/llvm-project/pull/124920 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits