File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -12035,14 +12035,10 @@ bool ASTContext::DeclMustBeEmitted(const Decl *D) {
12035
12035
// or `indirectly_callable' attribute must be emitted regardless of number
12036
12036
// of actual uses
12037
12037
if (LangOpts.SYCLIsDevice && isa<CXXMethodDecl>(D)) {
12038
- if (auto *A = D->getAttr<SYCLDeviceIndirectlyCallableAttr>())
12039
- return !A->isImplicit();
12040
- // Implicit 'sycl_device' attribute is treated as explicit one if method
12041
- // is also annotated with 'add_ir_attributes_function' attribute, because
12042
- // the latter can work as an alias for SYCL_EXTERNAL.
12043
- if (auto *A = D->getAttr<SYCLDeviceAttr>())
12044
- return !A->isImplicit() ||
12045
- D->hasAttr<SYCLAddIRAttributesFunctionAttr>();
12038
+ if (D->hasAttr<SYCLDeviceIndirectlyCallableAttr>())
12039
+ return true;
12040
+ if (D->hasAttr<SYCLDeviceAttr>())
12041
+ return true;
12046
12042
}
12047
12043
12048
12044
GVALinkage Linkage = GetGVALinkageForFunction(FD);
You can’t perform that action at this time.
0 commit comments