Skip to content

Commit

Permalink
Update diagnostic message
Browse files Browse the repository at this point in the history
  • Loading branch information
Fznamznon committed Aug 25, 2020
1 parent 05d5cdb commit 25b7ccc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions clang/include/clang/Basic/DiagnosticSemaKinds.td
Original file line number Diff line number Diff line change
Expand Up @@ -10991,8 +10991,8 @@ def err_sycl_restrict : Error<
"nor constant-initialized"
"}0">;
def warn_sycl_kernel_too_many_args : Warning<
"resulting number of kernel arguments %0 is greater than maximum supported "
"on GPU device - %1">, InGroup<SyclStrict>;
"resulting number of kernel arguments (%0) is greater than maximum supported "
"on GPU device - (%1)">, InGroup<SyclStrict>;
def err_sycl_virtual_types : Error<
"No class with a vtable can be used in a SYCL kernel or any code included in the kernel">;
def note_sycl_recursive_function_declared_here: Note<"function implemented using recursion declared here">;
Expand Down
4 changes: 2 additions & 2 deletions clang/test/SemaSYCL/num-args-overflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ __attribute__((sycl_kernel)) void kernel(F kernelFunc) {
void use() {
int Arr[2001];
#ifdef GPU
// expected-warning@+6 {{resulting number of kernel arguments 2001 is greater than maximum supported on GPU device - 2000}}
// expected-warning@+6 {{resulting number of kernel arguments (2001) is greater than maximum supported on GPU device - (2000)}}
#elif ERROR
// expected-error@+4 {{resulting number of kernel arguments 2001 is greater than maximum supported on GPU device - 2000}}
// expected-error@+4 {{resulting number of kernel arguments (2001) is greater than maximum supported on GPU device - (2000)}}
#else
// expected-no-diagnostics
#endif
Expand Down

0 comments on commit 25b7ccc

Please sign in to comment.