Skip to content

Commit ddac33d

Browse files
[SYCL][NFC] Fix copy instead of move Coverity hit (#20380)
1 parent 5a328c0 commit ddac33d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/graph/graph_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ exec_graph_impl::exec_graph_impl(sycl::context Context,
925925
duplicateNodes();
926926

927927
if (auto PlaceholderQueuePtr = GraphImpl->getQueue()) {
928-
MQueueImpl = PlaceholderQueuePtr;
928+
MQueueImpl = std::move(PlaceholderQueuePtr);
929929
} else {
930930
MQueueImpl = sycl::detail::queue_impl::create(
931931
*sycl::detail::getSyclObjImpl(GraphImpl->getDevice()),

0 commit comments

Comments
 (0)