From: Lang Hames Date: Mon, 11 Jan 2016 16:56:24 +0000 (+0000) Subject: [ORC] Pacify MSVC by adding explicit move construction/assignment to X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=392fee2351a1d718da15f7ede4f64fbed20c8aff;p=oota-llvm.git [ORC] Pacify MSVC by adding explicit move construction/assignment to OrcRemoteTargetServer::Allocator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257350 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h index af4eb8e5d63..aa063a3f944 100644 --- a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h +++ b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h @@ -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)