[llvm] r250758 - [Orc] Fix MSVC bugs introduced in r250749.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 19 16:23:17 PDT 2015
Author: lhames
Date: Mon Oct 19 18:23:17 2015
New Revision: 250758
URL: http://llvm.org/viewvc/llvm-project?rev=250758&view=rev
Log:
[Orc] Fix MSVC bugs introduced in r250749.
Modified:
llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h?rev=250758&r1=250757&r2=250758&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h Mon Oct 19 18:23:17 2015
@@ -67,13 +67,20 @@ private:
std::set<const Function*> StubsToClone;
std::unique_ptr<IndirectStubsMgrT> StubsMgr;
- LogicalModuleResources() {}
+ LogicalModuleResources() = default;
// Explicit move constructor to make MSVC happy.
- LogicalModuleResources(LogicalModuleResources &&Other) = default;
+ LogicalModuleResources(LogicalModuleResources &&Other)
+ : SourceModule(std::move(Other.SourceModule)),
+ StubsToClone(std::move(Other.StubsToClone)),
+ StubsMgr(std::move(Other.StubsMgr)) {}
// Explicit move assignment to make MSVC happy.
- LogicalModuleResources& operator=(LogicalModuleResources &&Other) = default;
+ LogicalModuleResources& operator=(LogicalModuleResources &&Other) {
+ SourceModule = std::move(Other.SourceModule);
+ StubsToClone = std::move(Other.StubsToClone);
+ StubsMgr = std::move(Other.StubsMgr);
+ }
JITSymbol findSymbol(StringRef Name, bool ExportedSymbolsOnly) {
if (Name.endswith("$stub_ptr") && !ExportedSymbolsOnly) {
More information about the llvm-commits
mailing list