forked from OSchip/llvm-project
Remove code that was intentionally generating bad code on the GNU runtime for no reason (failing to emit .cxx_constructor / .cxx_destructor methods).
llvm-svn: 127806
This commit is contained in:
parent
65ccd1d9b0
commit
a9e5460f03
|
@ -1934,7 +1934,7 @@ void CodeGenModule::EmitObjCPropertyImplementations(const
|
||||||
/// EmitObjCIvarInitializations - Emit information for ivar initialization
|
/// EmitObjCIvarInitializations - Emit information for ivar initialization
|
||||||
/// for an implementation.
|
/// for an implementation.
|
||||||
void CodeGenModule::EmitObjCIvarInitializations(ObjCImplementationDecl *D) {
|
void CodeGenModule::EmitObjCIvarInitializations(ObjCImplementationDecl *D) {
|
||||||
if (!Features.NeXTRuntime || D->getNumIvarInitializers() == 0)
|
if (D->getNumIvarInitializers() == 0)
|
||||||
return;
|
return;
|
||||||
DeclContext* DC = const_cast<DeclContext*>(dyn_cast<DeclContext>(D));
|
DeclContext* DC = const_cast<DeclContext*>(dyn_cast<DeclContext>(D));
|
||||||
assert(DC && "EmitObjCIvarInitializations - null DeclContext");
|
assert(DC && "EmitObjCIvarInitializations - null DeclContext");
|
||||||
|
|
Loading…
Reference in New Issue