From ba75b718a17a7b6d1dc89308cf6de117ec2b1bbc Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 13 Sep 2016 20:00:02 +0000 Subject: [PATCH] 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 --- utils/TableGen/ClangDiagnosticsEmitter.cpp | 6 +++--- 1 file 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 &RST) = 0; virtual ~Piece() {} -- 2.50.1