From 0f3403cb5accaa69386e0caa49f9d30ecd3328f6 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 2 Mar 2009 04:58:03 +0000 Subject: Don't set nounwind on functions when in using the new Obj-C ABI. llvm-svn: 65806 --- clang/lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index b6b52cd8f79f..558c940713aa 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()) -- cgit v1.2.3