Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 497ca63

Browse files
committed
Revert "[dsymutil] MSVC does generate move constructors, but it should accept to default them"
This reverts commit r231350. It turns out MSVC doesn't generate implicit move constructors and also doesn't accept to default them... See for example http://lab.llvm.org:8011/builders/lldb-x86-windows-msvc/builds/2786 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231351 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 0ff2c1e commit 497ca63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/dsymutil/DwarfLinker.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ class CompileUnit {
6565
}
6666

6767
// Workaround MSVC not supporting implicit move ops
68-
CompileUnit(CompileUnit &&RHS) = default;
68+
CompileUnit(CompileUnit &&RHS)
69+
: OrigUnit(RHS.OrigUnit), Info(std::move(RHS.Info)),
70+
CUDie(std::move(RHS.CUDie)), StartOffset(RHS.StartOffset),
71+
NextUnitOffset(RHS.NextUnitOffset) {}
6972

7073
DWARFUnit &getOrigUnit() const { return OrigUnit; }
7174

0 commit comments

Comments
 (0)