================
@@ -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
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to