summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-09-12 06:51:11 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-09-12 06:51:11 +0000
commit060de1f17b8f4177d03ecb0bed117c84cf7c979c (patch)
tree73df6edd30c0740cec2ec43e378e2f27a339afc4 /utils
parent4d206e7dc236dc6d22d2f6017701b42ef4cac59e (diff)
Add virtual destructor (necessary due to the switch to shared_ptr).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281198 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/ClangDiagnosticsEmitter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/TableGen/ClangDiagnosticsEmitter.cpp b/utils/TableGen/ClangDiagnosticsEmitter.cpp
index 22e51572b9..dafb93158a 100644
--- a/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ b/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -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;