Skip to content

Commit 15f9320

Browse files
Fixed leftover copy-instead-of-move issue
1 parent b9d987a commit 15f9320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsyclinterface/source/dpctl_sycl_queue_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ DPCTLQueue_Prefetch(__dpctl_keep DPCTLSyclQueueRef QRef,
500500
error_handler(e, __FILE__, __func__, __LINE__);
501501
return nullptr;
502502
}
503-
return wrap<event>(new event(ev));
503+
return wrap<event>(new event(std::move(ev)));
504504
}
505505
else {
506506
error_handler("Attempt to prefetch USM-allocation at nullptr.",

0 commit comments

Comments
 (0)