aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGVtable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r--lib/CodeGen/CGVtable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index 3c718b5fe3..efca4f2fbe 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -80,7 +80,7 @@ public:
const CXXRecordDecl *l, uint64_t lo, CodeGenModule &cgm)
: methods(meth), Class(c), LayoutClass(l), LayoutOffset(lo),
BLayout(cgm.getContext().getASTRecordLayout(l)),
- rtti(cgm.GenerateRtti(c)), VMContext(cgm.getModule().getContext()),
+ rtti(cgm.GenerateRttiRef(c)), VMContext(cgm.getModule().getContext()),
CGM(cgm), AddressPoints(*new llvm::DenseMap<CtorVtable_t, int64_t>),
Extern(true),
LLVMPointerWidth(cgm.getContext().Target.getPointerWidth(0)) {
@@ -1022,6 +1022,7 @@ llvm::Constant *CGVtableInfo::getVtable(const CXXRecordDecl *RD) {
if (vtbl)
return vtbl;
vtbl = CGM.GenerateVtable(RD, RD);
+ CGM.GenerateRtti(RD);
CGM.GenerateVTT(RD);
return vtbl;
}