r281198 - Add virtual destructor (necessary due to the switch to shared_ptr).
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 11 23:51:11 PDT 2016
Author: rsmith
Date: Mon Sep 12 01:51:11 2016
New Revision: 281198
URL: http://llvm.org/viewvc/llvm-project?rev=281198&view=rev
Log:
Add virtual destructor (necessary due to the switch to shared_ptr).
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=281198&r1=281197&r2=281198&view=diff
==============================================================================
--- cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp (original)
+++ cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp Mon Sep 12 01:51:11 2016
@@ -911,6 +911,7 @@ namespace {
struct DiagText {
struct Piece {
virtual void print(std::vector<std::string> &RST) = 0;
+ virtual ~Piece() {}
};
struct TextPiece : Piece {
StringRef Role;
More information about the cfe-commits
mailing list