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 | a9e5460f03b4143f09250f7493799b562ca275e4 (patch) | |
tree | f8a8d9b9bd209a1f7a24113fa35c40b470ff5fa2 /clang/lib/CodeGen | |
parent | 65ccd1d9b03c7abb957cfd2862f50d64fcacf5c7 (diff) | |
download | bcm5719-llvm-a9e5460f03b4143f09250f7493799b562ca275e4.tar.gz bcm5719-llvm-a9e5460f03b4143f09250f7493799b562ca275e4.zip |
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
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 24b3c3214c4..61814702bdd 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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"); |