summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-05-15 01:50:14 +0000
committerAnders Carlsson <andersca@mac.com>2011-05-15 01:50:14 +0000
commitb55c8c127ee0a051d134367114ee823aeb179600 (patch)
treeaa89b418a4395f222584860c43bb6d7e7d077069 /clang/lib
parentae34ee80d337d47791ab2a50ae339e8990d8c624 (diff)
downloadbcm5719-llvm-b55c8c127ee0a051d134367114ee823aeb179600.tar.gz
bcm5719-llvm-b55c8c127ee0a051d134367114ee823aeb179600.zip
Disable the optimization until the bug noticed by Sean Hunt has been fixed.
llvm-svn: 131372
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 785b9e129a1..73dfc9fe7db 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -745,6 +745,10 @@ void CodeGenFunction::EmitCtorPrologue(const CXXConstructorDecl *CD,
/// any vtable pointers before calling this destructor.
static bool CanSkipVTablePointerInitialization(ASTContext &Context,
const CXXDestructorDecl *Dtor) {
+ // FIXME: We need to check dtors of bases of members too.
+ // Re-enable once this has been fixed.
+ return false;
+
if (!Dtor->hasTrivialBody())
return false;
OpenPOWER on IntegriCloud