Skip to content

Commit a307ff1

Browse files
[SYCL] Fix parameter passed by value in CGExecCommandBuffer (#10843)
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent 288aeae commit a307ff1

File tree

1 file changed

+1
-1
lines changed
  • sycl/include/sycl/detail

1 file changed

+1
-1
lines changed

sycl/include/sycl/detail/cg.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ class CGExecCommandBuffer : public CG {
574574
public:
575575
sycl::detail::pi::PiExtCommandBuffer MCommandBuffer;
576576

577-
CGExecCommandBuffer(sycl::detail::pi::PiExtCommandBuffer CommandBuffer,
577+
CGExecCommandBuffer(const sycl::detail::pi::PiExtCommandBuffer &CommandBuffer,
578578
CG::StorageInitHelper CGData)
579579
: CG(CGTYPE::ExecCommandBuffer, std::move(CGData)),
580580
MCommandBuffer(CommandBuffer) {}

0 commit comments

Comments
 (0)