Skip to content

Commit b28af10

Browse files
committed
[SYCL] Fixing comment about propagation of attributes to kernel
1 parent 62e2f3b commit b28af10

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clang/lib/Sema/SemaSYCL.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,9 @@ class MarkDeviceFunction : public RecursiveASTVisitor<MarkDeviceFunction> {
451451
Attrs.insert(A);
452452
if (auto *A = FD->getAttr<ReqdWorkGroupSizeAttr>())
453453
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.
458457
if (auto *A = FD->getAttr<SYCLIntelKernelArgsRestrictAttr>()) {
459458
if (ParentFD == SYCLKernel) {
460459
Attrs.insert(A);

0 commit comments

Comments
 (0)