r281194 - Attempt to placate MSVC.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 11 23:13:44 PDT 2016
Author: rsmith
Date: Mon Sep 12 01:13:44 2016
New Revision: 281194
URL: http://llvm.org/viewvc/llvm-project?rev=281194&view=rev
Log:
Attempt to placate MSVC.
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=281194&r1=281193&r2=281194&view=diff
==============================================================================
--- cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp (original)
+++ cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp Mon Sep 12 01:13:44 2016
@@ -928,7 +928,7 @@ struct DiagText {
std::vector<std::unique_ptr<Piece>> Pieces;
- DiagText() {}
+ DiagText();
DiagText(StringRef Text);
DiagText(StringRef Kind, StringRef Text);
@@ -1021,6 +1021,8 @@ DiagText parseDiagText(StringRef &Text,
return Parsed;
}
+DiagText::DiagText() {}
+
DiagText::DiagText(StringRef Text) : DiagText(parseDiagText(Text, false)) {}
DiagText::DiagText(StringRef Kind, StringRef Text) : DiagText(parseDiagText(Text, false)) {
More information about the cfe-commits
mailing list