forked from OSchip/llvm-project
Don't set nounwind on functions when in using the new Obj-C ABI.
llvm-svn: 65806
This commit is contained in:
parent
b960b7b7c7
commit
0f3403cb5a
|
@ -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>())
|
||||
|
|
Loading…
Reference in New Issue