We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62e2f3b commit b28af10Copy full SHA for b28af10
clang/lib/Sema/SemaSYCL.cpp
@@ -451,10 +451,9 @@ class MarkDeviceFunction : public RecursiveASTVisitor<MarkDeviceFunction> {
451
Attrs.insert(A);
452
if (auto *A = FD->getAttr<ReqdWorkGroupSizeAttr>())
453
454
- // Allow the following kernel attributes only on lambda functions and
455
- // function objects that are called directly from a kernel (i.e. the one
456
- // passed to the parallel_for function). For all other cases,
457
- // emit a warning and ignore.
+ // Allow the following kernel attributes only on lambdas, functions and
+ // function objects that are called directly from a kernel.
+ // For all other cases, emit a warning and ignore.
458
if (auto *A = FD->getAttr<SYCLIntelKernelArgsRestrictAttr>()) {
459
if (ParentFD == SYCLKernel) {
460
0 commit comments