]> granicus.if.org Git - clang/commitdiff
Prefer llvm::Function::addFnAttr(...) to F->addAttribute(~0, ...).
authorDaniel Dunbar <daniel@zuster.org>
Sat, 27 Sep 2008 07:16:42 +0000 (07:16 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 27 Sep 2008 07:16:42 +0000 (07:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56753 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index 2ce22d890b26cee45bd7bad0cb60e4c62b3bb96a..6c9999df2427b3a5b008f7708ca6e098cfa34446 100644 (file)
@@ -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,