From da71cf0ce95dae621ecd4e9cdb603b7b2d2ec33c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 4 Nov 2008 18:09:07 +0000 Subject: [PATCH] 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 --- utils/TableGen/TGValueTypes.cpp | 1 + 1 file changed, 1 insertion(+) 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() {} }; }