зеркало из https://github.com/microsoft/clang.git
Remove code that was intentionally generating bad code on the GNU runtime for no reason (failing to emit .cxx_constructor / .cxx_destructor methods).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127806 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
53b24ebc37
Коммит
827bbcc8a9
|
@ -1934,7 +1934,7 @@ void CodeGenModule::EmitObjCPropertyImplementations(const
|
|||
/// EmitObjCIvarInitializations - Emit information for ivar initialization
|
||||
/// for an implementation.
|
||||
void CodeGenModule::EmitObjCIvarInitializations(ObjCImplementationDecl *D) {
|
||||
if (!Features.NeXTRuntime || D->getNumIvarInitializers() == 0)
|
||||
if (D->getNumIvarInitializers() == 0)
|
||||
return;
|
||||
DeclContext* DC = const_cast<DeclContext*>(dyn_cast<DeclContext>(D));
|
||||
assert(DC && "EmitObjCIvarInitializations - null DeclContext");
|
||||
|
|
Загрузка…
Ссылка в новой задаче