[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 8 10:27:07 PST 2025
================
@@ -15978,6 +15988,24 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body,
CheckCoroutineWrapper(FD);
}
+ // Diagnose invalid SYCL kernel entry point function declarations.
+ if (FD && !FD->isInvalidDecl() && !FD->isTemplated() &&
----------------
tahonermann wrote:
@erichkeane, any further thoughts on this thread? Thanks for your recent comments on other ones!
https://github.com/llvm/llvm-project/pull/120327
More information about the cfe-commits
mailing list