File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3690,19 +3690,20 @@ class SYCLKernelNameTypeVisitor
3690
3690
if (UnnamedLambdaUsed) {
3691
3691
S.Diag (KernelInvocationFuncLoc,
3692
3692
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
3694
3694
<< KernelNameType;
3695
3695
IsInvalid = true ;
3696
3696
return ;
3697
3697
}
3698
-
3699
3698
// Check if the declaration is completely defined within a
3700
3699
// function or class/struct.
3700
+
3701
3701
if (Tag->isCompleteDefinition ()) {
3702
3702
S.Diag (KernelInvocationFuncLoc,
3703
3703
diag::err_sycl_kernel_incorrectly_named)
3704
3704
<< /* kernel name should be globally visible */ 0
3705
3705
<< KernelNameType;
3706
+
3706
3707
IsInvalid = true ;
3707
3708
} else {
3708
3709
S.Diag (KernelInvocationFuncLoc, diag::warn_sycl_implicit_decl);
You can’t perform that action at this time.
0 commit comments