Skip to content

Commit ae63f32

Browse files
committed
update patch
1 parent d20f36c commit ae63f32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3690,19 +3690,20 @@ class SYCLKernelNameTypeVisitor
36903690
if (UnnamedLambdaUsed) {
36913691
S.Diag(KernelInvocationFuncLoc,
36923692
diag::err_sycl_kernel_incorrectly_named)
3693-
<< /* unnamed type is not valid in a SYCL kernel name */ 2
3693+
<< /* unnamed lambda is used in a SYCL kernel name */ 2
36943694
<< KernelNameType;
36953695
IsInvalid = true;
36963696
return;
36973697
}
3698-
36993698
// Check if the declaration is completely defined within a
37003699
// function or class/struct.
3700+
37013701
if (Tag->isCompleteDefinition()) {
37023702
S.Diag(KernelInvocationFuncLoc,
37033703
diag::err_sycl_kernel_incorrectly_named)
37043704
<< /* kernel name should be globally visible */ 0
37053705
<< KernelNameType;
3706+
37063707
IsInvalid = true;
37073708
} else {
37083709
S.Diag(KernelInvocationFuncLoc, diag::warn_sycl_implicit_decl);

0 commit comments

Comments
 (0)