forked from OSchip/llvm-project
[ORC] Pacify MSVC by adding explicit move construction/assignment to
OrcRemoteTargetServer::Allocator. llvm-svn: 257350
This commit is contained in:
parent
3c388597a1
commit
1f195eaa1b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue