forked from OSchip/llvm-project
Update to new function attribute querying syntax.
llvm-svn: 164726
This commit is contained in:
parent
863bab689a
commit
6fe7b78db4
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue