[ORC] Pacify MSVC by adding explicit move construction/assignment to

OrcRemoteTargetServer::Allocator.

llvm-svn: 257350
This commit is contained in:
Lang Hames 2016-01-11 16:56:24 +00:00
parent 3c388597a1
commit 1f195eaa1b
1 changed files with 5 additions and 2 deletions

View File

@ -111,8 +111,11 @@ public:
private: private:
struct Allocator { struct Allocator {
Allocator() = default; Allocator() = default;
Allocator(Allocator &&) = default; Allocator(Allocator &&Other) : Allocs(std::move(Other.Allocs)) {}
Allocator &operator=(Allocator &&) = default; Allocator &operator=(Allocator &&Other) {
Allocs = std::move(Other.Allocs);
return *this;
}
~Allocator() { ~Allocator() {
for (auto &Alloc : Allocs) for (auto &Alloc : Allocs)