[Orc] More explicit move construction/assignment to appease MSVC.

llvm-svn: 257358
This commit is contained in:
Lang Hames 2016-01-11 17:32:03 +00:00
parent f5c136186f
commit 510ee4b42f
1 changed files with 13 additions and 0 deletions

View File

@ -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; }