]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281382 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/ClangDiagnosticsEmitter.cpp

index d6881ae3074a8c04f8bdb58dbd407a6a2bc28dd7..00769a45571c2758c0049f5c4edcfe4e15c2109e 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() {}