mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-24 07:35:04 +00:00
Provide an explicit move ctor because MSVC can't synthesize one
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231303 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d0d92e7d30
commit
274eae84d8
@ -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(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user