Work around MSVC 2013's inability to default move special members.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 13 Sep 2016 20:00:02 +0000 (20:00 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 13 Sep 2016 20:00:02 +0000 (20:00 +0000)
llvm-svn: 281382

clang/utils/TableGen/ClangDiagnosticsEmitter.cpp

index d6881ae..00769a4 100644 (file)
@@ -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() {}