File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -451,10 +451,9 @@ class MarkDeviceFunction : public RecursiveASTVisitor<MarkDeviceFunction> {
451
451
Attrs.insert (A);
452
452
if (auto *A = FD->getAttr <ReqdWorkGroupSizeAttr>())
453
453
Attrs.insert (A);
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.
454
+ // Allow the following kernel attributes only on lambdas, functions and
455
+ // function objects that are called directly from a kernel.
456
+ // For all other cases, emit a warning and ignore.
458
457
if (auto *A = FD->getAttr <SYCLIntelKernelArgsRestrictAttr>()) {
459
458
if (ParentFD == SYCLKernel) {
460
459
Attrs.insert (A);
You can’t perform that action at this time.
0 commit comments