ac/llvm: fix build with LLVM 14
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 3 Sep 2021 07:24:35 +0000 (09:24 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Sep 2021 08:04:30 +0000 (10:04 +0200)
commit09cf2584bdf2184a67115b4e36038bba9f3e0ff1
tree7999fec4e91d3e9df8173a801a36bbfd00728006
parent718e9dd1332feafab3036519afee96f7816e6591
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>
src/amd/llvm/ac_llvm_helper.cpp