commit | f93349f3ec4d69eafba42436c33aaa91bfca7e70 | [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 | b01d191a25f92884855117ee7113a1bd3b59cdbc [diff] |
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,