From: Yaron Keren Date: Sat, 1 Aug 2015 15:50:53 +0000 (+0000) Subject: Provide move constructor to appease Visual C++. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=83d21e9cb205497aa060e2bffaa5b8cd05b13d14;p=oota-llvm.git Provide move constructor to appease Visual C++. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243836 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ExecutionEngine/Orc/LogicalDylib.h b/include/llvm/ExecutionEngine/Orc/LogicalDylib.h index ff5656d7b99..79e8a2e36dc 100644 --- a/include/llvm/ExecutionEngine/Orc/LogicalDylib.h +++ b/include/llvm/ExecutionEngine/Orc/LogicalDylib.h @@ -54,7 +54,10 @@ public: // If possible, remove this and ~LogicalDylib once the work in the dtor is // moved to members (eg: self-unregistering base layer handles). - LogicalDylib(LogicalDylib &&RHS) = default; + LogicalDylib(LogicalDylib &&RHS) + : BaseLayer(std::move(RHS.BaseLayer)), + LogicalModules(std::move(RHS.LogicalModules)), + DylibResources(std::move(RHS.DylibResources)) {} LogicalModuleHandle createLogicalModule() { LogicalModules.push_back(LogicalModule());