Add a virtual destructor to the base of another class hierarchy with virtual

methods.

llvm-svn: 111804
This commit is contained in:
Chandler Carruth 2010-08-23 08:37:21 +00:00
parent 191c4f73b2
commit 76c0cb493f
1 changed files with 2 additions and 0 deletions

View 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);