Give tablegen's Type a destructor, to suppress spurious
authorDan Gohman <gohman@apple.com>
Tue, 4 Nov 2008 18:09:07 +0000 (18:09 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 4 Nov 2008 18:09:07 +0000 (18:09 +0000)
"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

index 9e62322a63a4915d0f0f057f7ddd53ae2f19dae1..8979e13f72baf95a78471fe8ca6e774e43f763a0 100644 (file)
@@ -25,6 +25,7 @@ namespace llvm {
 class Type {
 public:
   virtual unsigned getSizeInBits() const = 0;
+  virtual ~Type() {}
 };
 
 }