Skip to content

Commit

Permalink
[SYCL] fixed missed comment about attributes propragation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiZibrov committed Aug 7, 2024
1 parent 8205f23 commit 8406640
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clang/lib/Sema/SemaSYCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,8 @@ static void collectSYCLAttributes(SemaSYCL &S, FunctionDecl *FD,
if (!FD->hasAttrs())
return;

// In SYCL 1.2.1 mode, the attributes are propagated from the function they
// are applied to onto the kernel which calls the function.
// In SYCL 2020 mode, the attributes are not propagated to the kernel.
// In SYCL 2020 mode, the attributes aren't propagated from the function they
// are applied on to the kernel which calls the function.
if (DirectlyCalled) {
llvm::copy_if(FD->getAttrs(), std::back_inserter(Attrs), [](Attr *A) {
// FIXME: Make this list self-adapt as new SYCL attributes are added.
Expand Down

0 comments on commit 8406640

Please sign in to comment.