From aec553bfdb06429fc0d941d39f37cdd51b2c3e9c Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 27 Sep 2008 07:16:42 +0000 Subject: Prefer llvm::Function::addFnAttr(...) to F->addAttribute(~0, ...). llvm-svn: 56753 --- clang/lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 2ce22d890b26..6c9999df2427 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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, -- cgit v1.2.3