From: Chandler Carruth Date: Mon, 23 Aug 2010 08:37:21 +0000 (+0000) Subject: Add a virtual destructor to the base of another class hierarchy with virtual X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d09a194bb296948ef05f6bff4435752450389fe;p=clang Add a virtual destructor to the base of another class hierarchy with virtual methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111804 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/RecordLayoutBuilder.cpp b/lib/AST/RecordLayoutBuilder.cpp index ff77561419..b8ce97740b 100644 --- a/lib/AST/RecordLayoutBuilder.cpp +++ b/lib/AST/RecordLayoutBuilder.cpp @@ -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);