]> granicus.if.org Git - clang/commitdiff
Attempt #2 to placate MSVC
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 12 Sep 2016 06:23:26 +0000 (06:23 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 12 Sep 2016 06:23:26 +0000 (06:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281195 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/ClangDiagnosticsEmitter.cpp

index e8d23dde4e13a07fa316a2134bdf4b59a7bd71a7..2f16261d764030b24d31942d4d6e6e5ae38d07ef 100644 (file)
@@ -929,6 +929,8 @@ struct DiagText {
   std::vector<std::unique_ptr<Piece>> Pieces;
 
   DiagText();
+  DiagText(DiagText &&O) : Pieces(std::move(O.Pieces)) {}
+
   DiagText(StringRef Text);
   DiagText(StringRef Kind, StringRef Text);