[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 30 08:45:27 PDT 2024
================
@@ -12053,6 +12053,10 @@ bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD,
if (LangOpts.OpenMP)
OpenMP().ActOnFinishedFunctionDefinitionInOpenMPAssumeScope(NewFD);
+ if (LangOpts.isSYCL() && NewFD->hasAttr<SYCLKernelEntryPointAttr>() &&
+ !NewFD->isInvalidDecl() && !NewFD->isDependentContext())
----------------
erichkeane wrote:
I've been thinking the opposite lately, which is why I made this comment. These conditions end up getting 'forgotten' somewhere along the way, and we get something that acts weird in release build.
https://github.com/llvm/llvm-project/pull/111389
More information about the cfe-commits
mailing list