commit | 9575eb342f79053ed421a8eec2963e41a5044838 | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Sat Sep 27 07:16:42 2008 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Sat Sep 27 07:16:42 2008 +0000 |
tree | 2915806713e50a64a98eb5db2a850ccda64fda5f | |
parent | 7a57b8de5f5f1c6d6d6775906656e835f4921774 [diff] [blame] |
Prefer llvm::Function::addFnAttr(...) to F->addAttribute(~0, ...). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56753 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 2ce22d8..6c9999d 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp
@@ -240,7 +240,7 @@ } if (!Features.Exceptions) - F->addAttribute(~0, llvm::Attribute::NoUnwind); + F->addFnAttr(llvm::Attribute::NoUnwind); } void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD,