[llvm] r231303 - Provide an explicit move ctor because MSVC can't synthesize one
David Blaikie
dblaikie at gmail.com
Wed Mar 4 14:20:52 PST 2015
Author: dblaikie
Date: Wed Mar 4 16:20:52 2015
New Revision: 231303
URL: http://llvm.org/viewvc/llvm-project?rev=231303&view=rev
Log:
Provide an explicit move ctor because MSVC can't synthesize one
Modified:
llvm/trunk/tools/dsymutil/DwarfLinker.cpp
Modified: llvm/trunk/tools/dsymutil/DwarfLinker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/DwarfLinker.cpp?rev=231303&r1=231302&r2=231303&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/DwarfLinker.cpp (original)
+++ llvm/trunk/tools/dsymutil/DwarfLinker.cpp Wed Mar 4 16:20:52 2015
@@ -64,6 +64,12 @@ public:
Info.resize(OrigUnit.getNumDIEs());
}
+ // Workaround MSVC not supporting implicit move ops
+ CompileUnit(CompileUnit &&RHS)
+ : OrigUnit(RHS.OrigUnit), Info(std::move(RHS.Info)),
+ CUDie(std::move(RHS.CUDie)), StartOffset(RHS.StartOffset),
+ NextUnitOffset(RHS.NextUnitOffset) {}
+
DWARFUnit &getOrigUnit() const { return OrigUnit; }
DIE *getOutputUnitDIE() const { return CUDie.get(); }
More information about the llvm-commits
mailing list