Skip to content

Commit b9d987a

Browse files
Fixed remaining copy-instead-of-move issue
1 parent 230b844 commit b9d987a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/libtensor/source/boolean_advanced_indexing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ py_place(const dpctl::tensor::usm_ndarray &dst,
594594
sycl::event cleanup_tmp_allocations_ev =
595595
exec_q.submit([&](sycl::handler &cgh) {
596596
cgh.depends_on(place_ev);
597-
auto ctx = exec_q.get_context();
597+
const auto &ctx = exec_q.get_context();
598598
cgh.host_task([ctx, packed_dst_shape_strides] {
599599
sycl::free(packed_dst_shape_strides, ctx);
600600
});

0 commit comments

Comments
 (0)