diff --git a/sycl/source/detail/device_image_impl.hpp b/sycl/source/detail/device_image_impl.hpp index f11782237db9b..9547296eb00e6 100644 --- a/sycl/source/detail/device_image_impl.hpp +++ b/sycl/source/detail/device_image_impl.hpp @@ -296,7 +296,7 @@ class device_image_impl KernelNameSetT &&KernelNames, KernelNameToArgMaskMap &&EliminatedKernelArgMasks, std::unique_ptr &&MergedImageStorage, private_tag) - : MBinImage(BinImage), MContext(std::move(Context)), + : MBinImage(BinImage), MContext(Context), MDevices(Devices.to>()), MState(State), MProgram(std::move(Program)), MKernelIDs(std::move(KernelIDs)), MKernelNames{std::move(KernelNames)}, @@ -315,7 +315,7 @@ class device_image_impl MangledKernelNameMapT &&MangledKernelNames, std::string &&Prefix, std::shared_ptr &&DeviceGlobalRegistry, private_tag) - : MBinImage(BinImage), MContext(std::move(Context)), + : MBinImage(BinImage), MContext(Context), MDevices(Devices.to>()), MState(State), MKernelIDs(std::move(KernelIDs)), MKernelNames{std::move(KernelNames)}, MSpecConstsDefValBlob(getSpecConstsDefValBlob()), @@ -329,7 +329,7 @@ class device_image_impl device_image_impl(const std::string &Src, context Context, devices_range Devices, syclex::source_language Lang, include_pairs_t &&IncludePairsVec, private_tag) - : MBinImage(Src), MContext(std::move(Context)), + : MBinImage(Src), MContext(Context), MDevices(Devices.to>()), MState(bundle_state::ext_oneapi_source), MSpecConstsDefValBlob(getSpecConstsDefValBlob()), @@ -342,7 +342,7 @@ class device_image_impl device_image_impl(const std::vector &Bytes, const context &Context, devices_range Devices, syclex::source_language Lang, private_tag) - : MBinImage(Bytes), MContext(std::move(Context)), + : MBinImage(Bytes), MContext(Context), MDevices(Devices.to>()), MState(bundle_state::ext_oneapi_source), MSpecConstsDefValBlob(getSpecConstsDefValBlob()), @@ -356,9 +356,9 @@ class device_image_impl syclex::source_language Lang, KernelNameSetT &&KernelNames, private_tag) : MBinImage(static_cast(nullptr)), - MContext(std::move(Context)), - MDevices(Devices.to>()), MState(State), - MProgram(std::move(Program)), MKernelNames{std::move(KernelNames)}, + MContext(Context), MDevices(Devices.to>()), + MState(State), MProgram(std::move(Program)), + MKernelNames{std::move(KernelNames)}, MSpecConstsDefValBlob(getSpecConstsDefValBlob()), MOrigins(ImageOriginKernelCompiler), MRTCBinInfo(KernelCompilerBinaryInfo{Lang}) {} diff --git a/sycl/source/detail/scheduler/commands.cpp b/sycl/source/detail/scheduler/commands.cpp index b38706b9d9d37..62aeb024a5c95 100644 --- a/sycl/source/detail/scheduler/commands.cpp +++ b/sycl/source/detail/scheduler/commands.cpp @@ -1511,8 +1511,8 @@ MemCpyCommand::MemCpyCommand(const Requirement &SrcReq, queue_impl *SrcQueue, queue_impl *DstQueue) : Command(CommandType::COPY_MEMORY, DstQueue), MSrcQueue(SrcQueue ? SrcQueue->shared_from_this() : nullptr), - MSrcReq(std::move(SrcReq)), MSrcAllocaCmd(SrcAllocaCmd), - MDstReq(std::move(DstReq)), MDstAllocaCmd(DstAllocaCmd) { + MSrcReq(SrcReq), MSrcAllocaCmd(SrcAllocaCmd), MDstReq(DstReq), + MDstAllocaCmd(DstAllocaCmd) { if (MSrcQueue) { MEvent->setContextImpl(MSrcQueue->getContextImpl()); }