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/CGClass.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/CGClass.cpp')
-rw-r--r-- | lib/CodeGen/CGClass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp index 8b4684cb38..0d2500894e 100644 --- a/lib/CodeGen/CGClass.cpp +++ b/lib/CodeGen/CGClass.cpp @@ -812,7 +812,7 @@ FieldHasTrivialDestructorBody(ASTContext &Context, /// CanSkipVTablePointerInitialization - Check whether we need to initialize /// any vtable pointers before calling this destructor. static bool CanSkipVTablePointerInitialization(ASTContext &Context, - const CXXDestructorDecl *Dtor) { + const CXXDestructorDecl *Dtor) { if (!Dtor->hasTrivialBody()) return false; |