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
This commit is contained in:
Richard Smith 2016-09-12 06:51:11 +00:00
parent 4d206e7dc2
commit 060de1f17b
1 changed files with 1 additions and 0 deletions

View 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;