[llvm] r257358 - [Orc] More explicit move construction/assignment to appease MSVC.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 11 09:32:04 PST 2016
Author: lhames
Date: Mon Jan 11 11:32:03 2016
New Revision: 257358
URL: http://llvm.org/viewvc/llvm-project?rev=257358&view=rev
Log:
[Orc] More explicit move construction/assignment to appease MSVC.
Modified:
llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h?rev=257358&r1=257357&r2=257358&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h Mon Jan 11 11:32:03 2016
@@ -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; }
More information about the llvm-commits
mailing list