Skip to content

Commit 03e124b

Browse files
authored
[SYCL] Fix basic_tests/sycl-kernel-save-user-names.cpp for the build without assertions (#5982)
Value names are discarded if assertions are disabled: https://clang.llvm.org/docs/UsersManual.html#controlling-value-names-in-llvm-ir Fix the test which check value names and fails in the post commit testing.
1 parent a37ca84 commit 03e124b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test/basic_tests/sycl-kernel-save-user-names.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-device-only -fno-sycl-early-optimizations -o %t.bc %s
1+
// RUN: %clangxx -fsycl -fsycl-device-only -fno-discard-value-names -fno-sycl-early-optimizations -o %t.bc %s
22
// RUN: sycl-post-link %t.bc -spec-const=default -o %t.table
33
// RUN: llvm-spirv -o %t.spv -spirv-max-version=1.3 -spirv-ext=+all %t.bc
44
// RUN: llvm-spirv -o %t.rev.bc -r %t.spv

0 commit comments

Comments
 (0)