]> granicus.if.org Git - clang/commitdiff
Add virtual destructor (necessary due to the switch to shared_ptr).
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 12 Sep 2016 06:51:11 +0000 (06:51 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 12 Sep 2016 06:51:11 +0000 (06:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281198 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/ClangDiagnosticsEmitter.cpp

index 22e51572b9cb298647b6e635b14ee6c6c2160f94..dafb93158abdf33f3f7ffdfa224c47db9e556d8e 100644 (file)
@@ -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;