Skip to content

Commit 1219a36

Browse files
ianaylKornevNikita
authored andcommitted
[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 23233f7 commit 1219a36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/source/detail/graph_impl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,8 @@ void exec_graph_impl::update(
13951395
// other scheduler commands
13961396
auto UpdateEvent =
13971397
sycl::detail::Scheduler::getInstance().addCommandGraphUpdate(
1398-
this, Nodes, AllocaQueue, UpdateRequirements, MExecutionEvents);
1398+
this, Nodes, AllocaQueue, std::move(UpdateRequirements),
1399+
MExecutionEvents);
13991400

14001401
MExecutionEvents.push_back(UpdateEvent);
14011402

0 commit comments

Comments
 (0)