diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-09-27 07:16:42 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-09-27 07:16:42 +0000 |
commit | f93349f3ec4d69eafba42436c33aaa91bfca7e70 (patch) | |
tree | 2915806713e50a64a98eb5db2a850ccda64fda5f /lib/CodeGen/CodeGenModule.cpp | |
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
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 2ce22d890b..6c9999df24 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -240,7 +240,7 @@ void CodeGenModule::SetFunctionAttributesForDefinition(const Decl *D, } if (!Features.Exceptions) - F->addAttribute(~0, llvm::Attribute::NoUnwind); + F->addFnAttr(llvm::Attribute::NoUnwind); } void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD, |