summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-02 04:58:03 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-02 04:58:03 +0000
commit0f3403cb5accaa69386e0caa49f9d30ecd3328f6 (patch)
treee9fa689a7f10bf5441ac4640e833469d18f8975e /clang/lib/CodeGen/CodeGenModule.cpp
parentb960b7b7c7d7a79124f83fc720b9b7981d5d07dd (diff)
downloadbcm5719-llvm-0f3403cb5accaa69386e0caa49f9d30ecd3328f6.tar.gz
bcm5719-llvm-0f3403cb5accaa69386e0caa49f9d30ecd3328f6.zip
Don't set nounwind on functions when in using the new Obj-C ABI.
llvm-svn: 65806
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index b6b52cd8f79..558c940713a 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -334,7 +334,7 @@ void CodeGenModule::SetFunctionAttributesForDefinition(const Decl *D,
FD->isInline(), F, true);
}
- if (!Features.Exceptions)
+ if (!Features.Exceptions && !Features.ObjCNonFragileABI)
F->addFnAttr(llvm::Attribute::NoUnwind);
if (D->getAttr<AlwaysInlineAttr>())
OpenPOWER on IntegriCloud