diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2008-09-27 07:16:42 +0000 | 
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2008-09-27 07:16:42 +0000 | 
| commit | aec553bfdb06429fc0d941d39f37cdd51b2c3e9c (patch) | |
| tree | 252e17b9ac89cd983e46728fdf5c99907197ca09 /clang | |
| parent | 274ff37583b21f634c9a6d7906eac1b11e70d19c (diff) | |
| download | bcm5719-llvm-aec553bfdb06429fc0d941d39f37cdd51b2c3e9c.tar.gz bcm5719-llvm-aec553bfdb06429fc0d941d39f37cdd51b2c3e9c.zip  | |
Prefer llvm::Function::addFnAttr(...) to F->addAttribute(~0, ...).
llvm-svn: 56753
Diffstat (limited to 'clang')
| -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 2ce22d890b2..6c9999df242 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,  | 

