summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-10-09 18:16:58 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-10-09 18:16:58 +0000
commitb6487322302f944b82eabbe8088105eece016682 (patch)
tree2d340890ac20d810b1a9042fd7a5dbb3f8551047 /clang/lib/CodeGen/CGClass.cpp
parent85cc66d85ef36f4da21a9d1c443a35f17cd47b27 (diff)
downloadbcm5719-llvm-b6487322302f944b82eabbe8088105eece016682.tar.gz
bcm5719-llvm-b6487322302f944b82eabbe8088105eece016682.zip
Initialize vtorDisp in class constructors and destructors
Reviewed at http://llvm-reviews.chandlerc.com/D1867 llvm-svn: 192312
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 137d793c117..91f42e2f579 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -1992,6 +1992,9 @@ void CodeGenFunction::InitializeVTablePointers(const CXXRecordDecl *RD) {
/*NearestVBase=*/0,
/*OffsetFromNearestVBase=*/CharUnits::Zero(),
/*BaseIsNonVirtualPrimaryBase=*/false, RD, VBases);
+
+ if (RD->getNumVBases())
+ CGM.getCXXABI().initializeHiddenVirtualInheritanceMembers(*this, RD);
}
llvm::Value *CodeGenFunction::GetVTablePtr(llvm::Value *This,
OpenPOWER on IntegriCloud