================
@@ -12909,6 +12909,10 @@ bool ASTContext::DeclMustBeEmitted(const Decl *D) {
if (D->hasAttr<WeakRefAttr>())
return false;
+ if (LangOpts.SYCLIsDevice &&
+ (!D->hasAttr<SYCLKernelEntryPointAttr>() ||
!D->hasAttr<SYCLExternalAttr>()))
----------------
Fznamznon wrote:
Shouldn't that be
```suggestion
if (LangOpts.SYCLIsDevice &&
!D->hasAttr<SYCLKernelEntryPointAttr>() &&
!D->hasAttr<SYCLExternalAttr>())
```
https://github.com/llvm/llvm-project/pull/140282
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits