Skip to content

Commit 766887a

Browse files
author
Erich Keane
committed
Fix a couple of @Fznamznon comments
1 parent 865d275 commit 766887a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,6 +1660,11 @@ class SyclKernelBodyCreator : public SyclKernelFieldHandler {
16601660
llvm::SmallVector<Stmt *, 16> BodyStmts;
16611661
llvm::SmallVector<InitListExpr *, 16> CollectionInitExprs;
16621662
llvm::SmallVector<Stmt *, 16> FinalizeStmts;
1663+
// This collection contains the information required to add/remove information
1664+
// about arrays as we enter them. The InitializedEntity component is
1665+
// necessary for initializing child members. uin64_t is the index of the
1666+
// current element being worked on, which is updated every time we visit
1667+
// nextElement.
16631668
llvm::SmallVector<std::pair<InitializedEntity, uint64_t>, 8> ArrayInfos;
16641669
VarDecl *KernelObjClone;
16651670
InitializedEntity VarEntity;

clang/test/SemaSYCL/streams.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <sycl.hpp>
44

5-
template <typename name, typename Func>
5+
template <typename Name, typename Func>
66
__attribute__((sycl_kernel)) void kernel(const Func &kernelFunc) {
77
kernelFunc();
88
}

0 commit comments

Comments
 (0)