[llvm] r257350 - [ORC] Pacify MSVC by adding explicit move construction/assignment to
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 11 08:56:25 PST 2016
Author: lhames
Date: Mon Jan 11 10:56:24 2016
New Revision: 257350
URL: http://llvm.org/viewvc/llvm-project?rev=257350&view=rev
Log:
[ORC] Pacify MSVC by adding explicit move construction/assignment to
OrcRemoteTargetServer::Allocator.
Modified:
llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h?rev=257350&r1=257349&r2=257350&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h Mon Jan 11 10:56:24 2016
@@ -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)
More information about the llvm-commits
mailing list