From 7c24e4d3c529b0b6448e9a02d58b334b0d01aa23 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 31 Jul 2015 21:47:07 +0000 Subject: [PATCH] Fix an MSVC build break since it can't synthesize move ctors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243792 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ExecutionEngine/Orc/LogicalDylib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/llvm/ExecutionEngine/Orc/LogicalDylib.h b/include/llvm/ExecutionEngine/Orc/LogicalDylib.h index 90380391dec..ff5656d7b99 100644 --- a/include/llvm/ExecutionEngine/Orc/LogicalDylib.h +++ b/include/llvm/ExecutionEngine/Orc/LogicalDylib.h @@ -30,7 +30,9 @@ private: struct LogicalModule { // Make this move-only to ensure they don't get duplicated across moves of // LogicalDylib or anything like that. - LogicalModule(LogicalModule &&) = default; + LogicalModule(LogicalModule &&RHS) + : Resources(std::move(RHS.Resources)), + BaseLayerHandles(std::move(RHS.BaseLayerHandles)) {} LogicalModule() = default; LogicalModuleResources Resources; BaseLayerHandleList BaseLayerHandles; -- 2.34.1