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,