Skip to content

Commit f9cbf2a

Browse files
committed
[SYCL] Fix clang's lit tests if assertions are disabled
When assertions are disabled clang do not emit human readable names for variables and function parameters. Make intel-restrict.cpp test invariant to the build configuration. Signed-off-by: Alexey Bader <[email protected]>
1 parent 9dd68c5 commit f9cbf2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CodeGenSYCL/intel-restrict.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int foo(int X) {
5353
cgh.single_task<class kernel_restrict_struct>(f);
5454
});
5555

56-
// CHECK: define {{.*}} spir_kernel {{.*}}kernel_restrict_other_params{{.*}}(i32 addrspace(1)* noalias %{{.*}} i32 addrspace(1)* noalias %{{.*}}, i32 %_arg_9)
56+
// CHECK: define {{.*}} spir_kernel {{.*}}kernel_restrict_other_params{{.*}}(i32 addrspace(1)* noalias %{{.*}} i32 addrspace(1)* noalias %{{.*}}, i32 %{{[^,]*}})
5757
int num = 42;
5858
Q.submit([&](cl::sycl::handler& cgh) {
5959
auto AccA = BufA.get_access<sycl_read_write, sycl_global_buffer>(cgh);

0 commit comments

Comments
 (0)