r281382 - Work around MSVC 2013's inability to default move special members.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 13 13:00:02 PDT 2016


Author: rsmith
Date: Tue Sep 13 15:00:02 2016
New Revision: 281382

URL: http://llvm.org/viewvc/llvm-project?rev=281382&view=rev
Log:
Work around MSVC 2013's inability to default move special members.

Modified:
    cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp

Modified: cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp?rev=281382&r1=281381&r2=281382&view=diff
==============================================================================
--- cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp (original)
+++ cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp Tue Sep 13 15:00:02 2016
@@ -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() {}




More information about the cfe-commits mailing list