summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/RecordLayoutBuilder.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-08-23 08:37:21 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-08-23 08:37:21 +0000
commit76c0cb493ff9221754fae2f24801ff8c715ac0ef (patch)
tree78479599b454f74a2eca3c31736f160ed96f4a31 /clang/lib/AST/RecordLayoutBuilder.cpp
parent191c4f73b201ded25020a14473441de5b3fb538a (diff)
downloadbcm5719-llvm-76c0cb493ff9221754fae2f24801ff8c715ac0ef.tar.gz
bcm5719-llvm-76c0cb493ff9221754fae2f24801ff8c715ac0ef.zip
Add a virtual destructor to the base of another class hierarchy with virtual
methods. llvm-svn: 111804
Diffstat (limited to 'clang/lib/AST/RecordLayoutBuilder.cpp')
-rw-r--r--clang/lib/AST/RecordLayoutBuilder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/RecordLayoutBuilder.cpp b/clang/lib/AST/RecordLayoutBuilder.cpp
index ff77561419e..b8ce97740b3 100644
--- a/clang/lib/AST/RecordLayoutBuilder.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud