[ORC] Pacify MSVC by adding explicit move construction/assignment to
authorLang Hames <lhames@gmail.com>
Mon, 11 Jan 2016 16:56:24 +0000 (16:56 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 11 Jan 2016 16:56:24 +0000 (16:56 +0000)
OrcRemoteTargetServer::Allocator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257350 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h

index af4eb8e5d63b63f373cd0004572650f14d108219..aa063a3f94460436e5cd68b2be5a60b1fe4eb48d 100644 (file)
@@ -111,8 +111,11 @@ public:
 private:
   struct Allocator {
     Allocator() = default;
-    Allocator(Allocator &&) = default;
-    Allocator &operator=(Allocator &&) = default;
+    Allocator(Allocator &&Other) : Allocs(std::move(Other.Allocs)) {}
+    Allocator &operator=(Allocator &&Other) {
+      Allocs = std::move(Other.Allocs);
+      return *this;
+    }
 
     ~Allocator() {
       for (auto &Alloc : Allocs)