Skip to content

Commit a0071d1

Browse files
committed
Remove sycl_external attribute support to variables.
Support for functions is sufficient for SYCL 2020 spec conformance.
1 parent 195a3cc commit a0071d1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

clang/include/clang/Basic/Attr.td

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ class SubjectList<list<AttrSubject> subjects, SubjectDiag diag = WarnDiag,
416416
string CustomDiag = customDiag;
417417
}
418418

419-
class LangOpt<string name, code customCode = [{}], bit silentlyIgnore = 0> {
419+
class LangOpt<string name, code customCode = [{}]> {
420420
// The language option to test; ignored when custom code is supplied.
421421
string Name = name;
422422

@@ -1599,14 +1599,9 @@ def DeviceKernel : DeclOrTypeAttr {
15991599
}];
16001600
}
16011601

1602-
def GlobalStorageNonLocalVar : SubsetSubject<Var,
1603-
[{S->hasGlobalStorage() &&
1604-
!S->isLocalVarDeclOrParm()}],
1605-
"global variables">;
1606-
16071602
def SYCLExternal : InheritableAttr {
16081603
let Spellings = [Clang<"sycl_external">];
1609-
let Subjects = SubjectList<[Function, GlobalStorageNonLocalVar]>;
1604+
let Subjects = SubjectList<[Function]>;
16101605
let LangOpts = [SYCLDevice];
16111606
let Documentation = [SYCLExternalDocs];
16121607
}

0 commit comments

Comments
 (0)