summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-09 07:45:26 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-09 07:45:26 +0000
commit0597c1e53cc9e773eff07746df271cd035cc5bd2 (patch)
treeb918b6194a706c48a89ce9ceb8424bd6efddd9ba /clang/lib/CodeGen/CodeGenModule.cpp
parentc9b22d735a921e335bc02aea0bd4695c5a3e52a9 (diff)
downloadbcm5719-llvm-0597c1e53cc9e773eff07746df271cd035cc5bd2.tar.gz
bcm5719-llvm-0597c1e53cc9e773eff07746df271cd035cc5bd2.zip
We use the enums to query whether an Attributes object has that attribute. The
opaque layer is responsible for knowing where that specific attribute is stored. llvm-svn: 165489
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 c6bb9f21771..8c57f4cff25 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -578,7 +578,7 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
// (noinline wins over always_inline, and we can't specify both in IR)
if ((D->hasAttr<AlwaysInlineAttr>() || D->hasAttr<ForceInlineAttr>()) &&
- !F->getFnAttributes().hasNoInlineAttr())
+ !F->getFnAttributes().hasAttribute(llvm::Attributes::NoInline))
F->addFnAttr(llvm::Attribute::AlwaysInline);
// FIXME: Communicate hot and cold attributes to LLVM more directly.
OpenPOWER on IntegriCloud