diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-09-13 20:00:02 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-09-13 20:00:02 +0000 |
commit | ba75b718a17a7b6d1dc89308cf6de117ec2b1bbc (patch) | |
tree | 8383866a1e6fa1aba30687015470fcb8df32d042 /utils | |
parent | 76b268320af2902626dff9d247117c33313b2cbe (diff) |
Work around MSVC 2013's inability to default move special members.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/ClangDiagnosticsEmitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/ClangDiagnosticsEmitter.cpp b/utils/TableGen/ClangDiagnosticsEmitter.cpp index d6881ae307..00769a4557 100644 --- a/utils/TableGen/ClangDiagnosticsEmitter.cpp +++ b/utils/TableGen/ClangDiagnosticsEmitter.cpp @@ -911,9 +911,9 @@ namespace { struct DiagText { struct Piece { // This type and its derived classes are move-only. - Piece() = default; - Piece(Piece &&O) = default; - Piece &operator=(Piece &&O) = default; + Piece() {} + Piece(Piece &&O) {} + Piece &operator=(Piece &&O) { return *this; } virtual void print(std::vector<std::string> &RST) = 0; virtual ~Piece() {} |