[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 10 10:14:39 PST 2025


================
@@ -16412,28 +16438,53 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, bool IsInstantiation,
         FD->getAttr<SYCLKernelEntryPointAttr>();
     if (FD->isDefaulted()) {
       Diag(SKEPAttr->getLocation(), diag::err_sycl_entry_point_invalid)
-          << SKEPAttr << /*defaulted function*/ 3;
+          << SKEPAttr << /*defaulted function*/ 2;
----------------
AaronBallman wrote:

I think we're at the point where this diagnostic should change to use `%enum_select` instead of `%select` so that we can use the enumerators here. WDYT?

https://github.com/llvm/llvm-project/pull/152403


More information about the cfe-commits mailing list