aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
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
commit1493e2369cb426da9d916949f45e62a6e6ac5ab4 (patch)
treeb4bca1390079a86f5c1275e593bab8698f7fe626 /lib/CodeGen
parent0c6f8260f7428b81f14f65a0d75cb44bc1d3cd3f (diff)
Disable the optimization until the bug noticed by Sean Hunt has been fixed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131372 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CGClass.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp
index 785b9e129a..73dfc9fe7d 100644
--- a/lib/CodeGen/CGClass.cpp
+++ b/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;