diff options
author | Devang Patel <dpatel@apple.com> | 2008-09-26 22:53:57 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-09-26 22:53:57 +0000 |
commit | 597e70876ea9a03f039b6c0b817b379d00272b88 (patch) | |
tree | 8fedcbc5c08e5141d1f015cb2c9dd043b33827b2 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | a05633e105cc2df01f0a5017b1269b6f32e01416 (diff) | |
download | bcm5719-llvm-597e70876ea9a03f039b6c0b817b379d00272b88.tar.gz bcm5719-llvm-597e70876ea9a03f039b6c0b817b379d00272b88.zip |
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.
llvm-svn: 56705
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index d237598e281..2ce22d890b2 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->addAttribute(~0, llvm::Attribute::NoUnwind); } void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD, |