From: Richard Smith Date: Mon, 12 Sep 2016 06:51:11 +0000 (+0000) Subject: Add virtual destructor (necessary due to the switch to shared_ptr). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=060de1f17b8f4177d03ecb0bed117c84cf7c979c;p=clang 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 --- 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 &RST) = 0; + virtual ~Piece() {} }; struct TextPiece : Piece { StringRef Role;