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

OrcRemoteTargetServer::Allocator.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257350 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2016-01-11 16:56:24 +00:00
parent f1e6e63761
commit 392fee2351

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)