commit | aec553bfdb06429fc0d941d39f37cdd51b2c3e9c | [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 | 252e17b9ac89cd983e46728fdf5c99907197ca09 | |
parent | 274ff37583b21f634c9a6d7906eac1b11e70d19c [diff] [blame] |
Prefer llvm::Function::addFnAttr(...) to F->addAttribute(~0, ...). llvm-svn: 56753
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 2ce22d8..6c9999d 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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,