From 27bceca19355a32ca3c8c8870dc57d12855b3558 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Mon, 11 Jan 2016 17:32:03 +0000 Subject: [PATCH] [Orc] More explicit move construction/assignment to appease MSVC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257358 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../ExecutionEngine/Orc/OrcRemoteTargetClient.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h index accf4e0f674..1c0c0996ba4 100644 --- a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h +++ b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h @@ -252,6 +252,19 @@ public: : Size(Size), Align(Align), Contents(new char[Size + Align - 1]), RemoteAddr(0) {} + Alloc(Alloc &&Other) + : Size(std::move(Other.Size)), Align(std::move(Other.Align)), + Contents(std::move(Other.Contents)), + RemoteAddr(std::move(Other.RemoteAddr)) {} + + Alloc &operator=(Alloc &&Other) { + Size = std::move(Other.Size); + Align = std::move(Other.Align); + Contents = std::move(Other.Contents); + RemoteAddr = std::move(Other.RemoteAddr); + return *this; + } + uint64_t getSize() const { return Size; } unsigned getAlign() const { return Align; } -- 2.34.1