forked from OSchip/llvm-project
[Orc] More explicit move construction/assignment to appease MSVC.
llvm-svn: 257358
This commit is contained in:
parent
f5c136186f
commit
510ee4b42f
|
@ -252,6 +252,19 @@ public:
|
|||
: Size(Size), Align(Align), Contents(new char[Size + Align - 1]),
|
||||
RemoteAddr(0) {}
|
||||
|
||||
Alloc(Alloc &&Other)
|
||||
: Size(std::move(Other.Size)), Align(std::move(Other.Align)),
|
||||
Contents(std::move(Other.Contents)),
|
||||
RemoteAddr(std::move(Other.RemoteAddr)) {}
|
||||
|
||||
Alloc &operator=(Alloc &&Other) {
|
||||
Size = std::move(Other.Size);
|
||||
Align = std::move(Other.Align);
|
||||
Contents = std::move(Other.Contents);
|
||||
RemoteAddr = std::move(Other.RemoteAddr);
|
||||
return *this;
|
||||
}
|
||||
|
||||
uint64_t getSize() const { return Size; }
|
||||
|
||||
unsigned getAlign() const { return Align; }
|
||||
|
|
Loading…
Reference in New Issue