[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:
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)