mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 20:20:09 +01:00
ac/llvm: fix build with LLVM 14
AttributeList::hasAttribute() has been replaced by hasParamAttr()/hasRetAttr(). All supported LLVM versions have hasParamAttr(). Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5320 Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12715>
This commit is contained in:
parent
718e9dd133
commit
09cf2584bd
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ bool ac_is_sgpr_param(LLVMValueRef arg)
|
|||
llvm::Argument *A = llvm::unwrap<llvm::Argument>(arg);
|
||||
llvm::AttributeList AS = A->getParent()->getAttributes();
|
||||
unsigned ArgNo = A->getArgNo();
|
||||
return AS.hasAttribute(ArgNo + 1, llvm::Attribute::InReg);
|
||||
return AS.hasParamAttr(ArgNo, llvm::Attribute::InReg);
|
||||
}
|
||||
|
||||
LLVMValueRef ac_llvm_get_called_value(LLVMValueRef call)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue