Skip to content

Commit cb5840c

Browse files
committed
updating error message
Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
1 parent a5811fa commit cb5840c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7310,8 +7310,7 @@ let CategoryName = "Lambda Issue" in {
73107310
def note_var_explicitly_captured_here : Note<"variable %0 is"
73117311
"%select{| explicitly}1 captured here">;
73127312
def err_implicit_this_capture : Error<
7313-
"implicit capture of 'this' is not allowed for kernel functions in "
7314-
"SYCL 1.2.1">;
7313+
"implicit capture of 'this' is not allowed for kernel functions">;
73157314

73167315
// C++14 lambda init-captures.
73177316
def warn_cxx11_compat_init_capture : Warning<

clang/test/SemaSYCL/lambda_implicit_capture_this.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void Class::function() {
1616
kernel<class kernel_wrapper>(
1717
[=]() {
1818
int acc[1] = {5};
19-
acc[0] *= member; // expected-error{{implicit capture of 'this' is not allowed for kernel functions in SYCL 1.2.1}}
19+
acc[0] *= member; // expected-error{{implicit capture of 'this' is not allowed for kernel functions}}
2020
});
2121
}
2222

0 commit comments

Comments
 (0)