From 1f195eaa1b51b221ac722381e1cb3c2f486b074f Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Mon, 11 Jan 2016 16:56:24 +0000 Subject: [PATCH] [ORC] Pacify MSVC by adding explicit move construction/assignment to OrcRemoteTargetServer::Allocator. llvm-svn: 257350 --- .../llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h b/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h index af4eb8e5d63b..aa063a3f9446 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h +++ b/llvm/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)