diff options
author | Anders Carlsson <andersca@mac.com> | 2011-05-16 04:08:36 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-05-16 04:08:36 +0000 |
commit | e3d6cf2149beb1c215ea6e87023c27b4f37712ad (patch) | |
tree | 8dac9c1cbee436b7aff5d567a3aae0d32869d6e3 /lib/CodeGen/CGVTables.cpp | |
parent | cb63e07c588dc7030f3f41812dea73f3571e449a (diff) |
Fix another regression from the "skip vtable pointer initialization"
optimization. Make sure to require a vtable when trying to get the address
of a VTT, otherwise we would never end up emitting the VTT.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVTables.cpp')
-rw-r--r-- | lib/CodeGen/CGVTables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGVTables.cpp b/lib/CodeGen/CGVTables.cpp index c7ef9c7418..9ac5e67ada 100644 --- a/lib/CodeGen/CGVTables.cpp +++ b/lib/CodeGen/CGVTables.cpp @@ -3175,7 +3175,7 @@ llvm::GlobalVariable *CodeGenVTables::GetAddrOfVTable(const CXXRecordDecl *RD) { Out.flush(); llvm::StringRef Name = OutName.str(); - ComputeVTableRelatedInformation(RD, true); + ComputeVTableRelatedInformation(RD, /*VTableRequired=*/true); const llvm::Type *Int8PtrTy = llvm::Type::getInt8PtrTy(CGM.getLLVMContext()); llvm::ArrayType *ArrayType = |