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:
|
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)
|
||||||
|
|
Loading…
Reference in New Issue