Skip to content

Commit e3b8a5c

Browse files
committed
[SYCL] Fix issue about temporary
Signed-off-by: Hu, Peisen <[email protected]>
1 parent 8e96436 commit e3b8a5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sycl/test-e2e/forward_progress/forward_progress_kernel_param_L0_gpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void check_props(sycl::queue &q) {}
2525

2626
template <typename T> struct KernelFunctor {
2727
T props;
28-
KernelFunctor(T &props_) : props(props_) {}
28+
KernelFunctor(const T &props_) : props(props_) {}
2929
void operator()() const {}
3030
auto get(properties_tag) const { return props; }
3131
};

sycl/test-e2e/forward_progress/forward_progress_kernel_param_ocl_cpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void check_props(sycl::queue &q) {}
2424

2525
template <typename T> struct KernelFunctor {
2626
T props;
27-
KernelFunctor(T &props_) : props(props_) {}
27+
KernelFunctor(const T &props_) : props(props_) {}
2828
void operator()() const {}
2929
auto get(properties_tag) const { return props; }
3030
};

0 commit comments

Comments
 (0)