We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 882b3d0 commit 1735df4Copy full SHA for 1735df4
clang/lib/Sema/SemaSYCL.cpp
@@ -2037,6 +2037,8 @@ void Sema::MarkDevice(void) {
2037
Diag(Existing->getLocation(), diag::note_conflicting_attribute);
2038
Diag(Attr->getLocation(), diag::note_conflicting_attribute);
2039
SYCLKernel->setInvalidDecl();
2040
+ } else {
2041
+ SYCLKernel->addAttr(A);
2042
}
2043
} else {
2044
SYCLKernel->addAttr(A);
@@ -2054,6 +2056,8 @@ void Sema::MarkDevice(void) {
2054
2056
2055
2057
2058
2059
2060
2061
2062
2063
0 commit comments