Disable the optimization until the bug noticed by Sean Hunt has been fixed.
llvm-svn: 131372
This commit is contained in:
parent
ae34ee80d3
commit
b55c8c127e
|
@ -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;
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
// CHECK: @_ZTCSd0_Si = linkonce_odr unnamed_addr constant
|
||||
// CHECK: @_ZTCSd16_So = linkonce_odr unnamed_addr constant
|
||||
// CHECK: @_ZTTSo = linkonce_odr unnamed_addr constant
|
||||
// CHECK: @_ZTTSi = linkonce_odr unnamed_addr constant
|
||||
// CHECK: @_ZTVSo = linkonce_odr unnamed_addr constant
|
||||
// CHECK: @_ZTTSi = linkonce_odr unnamed_addr constant
|
||||
// CHECK: @_ZTVSi = linkonce_odr unnamed_addr constant
|
||||
namespace std {
|
||||
struct A { A(); };
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
|
||||
// XFAIL: *
|
||||
|
||||
namespace Test1 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue