From 0597c1e53cc9e773eff07746df271cd035cc5bd2 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 9 Oct 2012 07:45:26 +0000 Subject: [PATCH] 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 --- clang/lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index c6bb9f2..8c57f4c 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() || D->hasAttr()) && - !F->getFnAttributes().hasNoInlineAttr()) + !F->getFnAttributes().hasAttribute(llvm::Attributes::NoInline)) F->addFnAttr(llvm::Attribute::AlwaysInline); // FIXME: Communicate hot and cold attributes to LLVM more directly. -- 2.7.4