Don't set nounwind on functions when in using the new Obj-C ABI.

llvm-svn: 65806
This commit is contained in:
Daniel Dunbar 2009-03-02 04:58:03 +00:00
parent b960b7b7c7
commit 0f3403cb5a
1 changed files with 1 additions and 1 deletions

View File

@ -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>())