Skip to content

Commit ec30318

Browse files
authored
[SYCL][Coverity] Fix COPY_INSTEAD_OF_MOVE hit in Coverity (#17942)
Fix coverity hit regarding an opportunity in `graph_impl` to use `std::move` instead of implicitly copying.
1 parent debfed2 commit ec30318

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/source/detail/graph_impl.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,8 @@ void exec_graph_impl::update(
14251425
// other scheduler commands
14261426
auto UpdateEvent =
14271427
sycl::detail::Scheduler::getInstance().addCommandGraphUpdate(
1428-
this, Nodes, AllocaQueue, UpdateRequirements, MExecutionEvents);
1428+
this, Nodes, AllocaQueue, std::move(UpdateRequirements),
1429+
MExecutionEvents);
14291430

14301431
MExecutionEvents.push_back(UpdateEvent);
14311432

0 commit comments

Comments
 (0)