]> granicus.if.org Git - clang/commitdiff
Add a virtual destructor to the base of another class hierarchy with virtual
authorChandler Carruth <chandlerc@gmail.com>
Mon, 23 Aug 2010 08:37:21 +0000 (08:37 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 23 Aug 2010 08:37:21 +0000 (08:37 +0000)
methods.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111804 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/RecordLayoutBuilder.cpp

index ff77561419e6299c9ac7ea80171b2d73707ebe4a..b8ce97740b38072ec20ba5a1e1abda3d8b54f99c 100644 (file)
@@ -588,6 +588,8 @@ protected:
       NonVirtualSize(0), NonVirtualAlignment(8), PrimaryBase(0),
       PrimaryBaseIsVirtual(false), FirstNearlyEmptyVBase(0) { }
 
+  virtual ~RecordLayoutBuilder() { }
+
   void Layout(const RecordDecl *D);
   void Layout(const CXXRecordDecl *D);
   void Layout(const ObjCInterfaceDecl *D);