summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-27 07:16:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-27 07:16:42 +0000
commitaec553bfdb06429fc0d941d39f37cdd51b2c3e9c (patch)
tree252e17b9ac89cd983e46728fdf5c99907197ca09 /clang/lib/CodeGen/CodeGenModule.cpp
parent274ff37583b21f634c9a6d7906eac1b11e70d19c (diff)
downloadbcm5719-llvm-aec553bfdb06429fc0d941d39f37cdd51b2c3e9c.tar.gz
bcm5719-llvm-aec553bfdb06429fc0d941d39f37cdd51b2c3e9c.zip
Prefer llvm::Function::addFnAttr(...) to F->addAttribute(~0, ...).
llvm-svn: 56753
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
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,
OpenPOWER on IntegriCloud