aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
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
commit74ac74ae244c501027924c99f2a33559a1e23b53 (patch)
tree70d62b0aef1ccfa73565e87934dd3e000660d611 /lib/CodeGen
parentd14151d5f52fa9048d41d7539299243e05755ec4 (diff)
Don't set nounwind on functions when in using the new Obj-C ABI.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index b6b52cd8f7..558c940713 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/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>())