From: Dan Gohman Date: Tue, 4 Nov 2008 18:09:07 +0000 (+0000) Subject: Give tablegen's Type a destructor, to suppress spurious X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=da71cf0ce95dae621ecd4e9cdb603b7b2d2ec33c;p=oota-llvm.git Give tablegen's Type a destructor, to suppress spurious "Type has virtual functions but non-virtual destructor" warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58710 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/TGValueTypes.cpp b/utils/TableGen/TGValueTypes.cpp index 9e62322a63a..8979e13f72b 100644 --- a/utils/TableGen/TGValueTypes.cpp +++ b/utils/TableGen/TGValueTypes.cpp @@ -25,6 +25,7 @@ namespace llvm { class Type { public: virtual unsigned getSizeInBits() const = 0; + virtual ~Type() {} }; }