[Orc] More explicit move construction/assignment to appease MSVC.
[oota-llvm.git] / include / llvm / ExecutionEngine / Orc / OrcRemoteTargetClient.h
index accf4e0f674ef738095f4693f6e5af33ddb3cba2..1c0c0996ba40bc4a6447646cccb7c15c65848a06 100644 (file)
@@ -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; }