Update to new function attribute querying syntax.

llvm-svn: 164726
This commit is contained in:
Bill Wendling 2012-09-26 21:59:46 +00:00
parent 863bab689a
commit 6fe7b78db4
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,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->hasFnAttr(llvm::Attribute::NoInline))
!F->getFnAttributes().hasNoInlineAttr())
F->addFnAttr(llvm::Attribute::AlwaysInline);
// FIXME: Communicate hot and cold attributes to LLVM more directly.