From a2c6912c416c2d9f79d18f3a88ab0ae2609286c3 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 26 Sep 2008 22:53:57 +0000 Subject: Now Attributes are divided in three groups - return attributes - inreg, zext and sext - parameter attributes - function attributes - nounwind, readonly, readnone, noreturn Return attributes use 0 as the index. Function attributes use ~0U as the index. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56705 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenModule.cpp') diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index d237598e28..2ce22d890b 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->addAttribute(~0, llvm::Attribute::NoUnwind); } void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD, -- cgit v1.2.3-18-g5258