diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2011-03-17 14:19:08 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2011-03-17 14:19:08 +0000 |
commit | 827bbcc8a9115782693b21030a45378abe5c1862 (patch) | |
tree | 0897753fe5be912ddac559251ee954ec6cd8bb1c /lib/CodeGen/CodeGenModule.cpp | |
parent | 53b24ebc37e6edd14ed31e2ef7cbed094ee87e51 (diff) |
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
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 24b3c3214c..61814702bd 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -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"); |