diff --git a/sycl/source/detail/graph_impl.cpp b/sycl/source/detail/graph_impl.cpp index 9b3cc9d638097..915d8ba8a338c 100644 --- a/sycl/source/detail/graph_impl.cpp +++ b/sycl/source/detail/graph_impl.cpp @@ -1425,7 +1425,8 @@ void exec_graph_impl::update( // other scheduler commands auto UpdateEvent = sycl::detail::Scheduler::getInstance().addCommandGraphUpdate( - this, Nodes, AllocaQueue, UpdateRequirements, MExecutionEvents); + this, Nodes, AllocaQueue, std::move(UpdateRequirements), + MExecutionEvents); MExecutionEvents.push_back(UpdateEvent);