fix(clover/llvm): update code to build with recent versions of LLVM 14 (Git)

`hasAttribute()` in `llvm::AttributeList` is gone, use `hasParamAttr()` instead.

This fixes an FTBFS.

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <!12826>
34 jobs for !12826 with fix/FTBFS/clover-llvm-14 in 11 minutes and 15 seconds (queued for 5 seconds)
latest detached
Status Name Job ID Coverage
  Sanity
passed sanity #13635876

00:00:08

 
  Container
passed debian/android_build #13635882

00:00:22

passed debian/arm_build #13635886
aarch64

00:00:25

passed debian/arm_test #13635891

00:00:27

passed debian/i386_build #13635879

00:00:24

passed debian/ppc64el_build #13635880

00:00:25

passed debian/s390x_build #13635881

00:00:26

passed debian/x86_build #13635878

00:00:24

passed debian/x86_build-base #13635877

00:00:26

passed debian/x86_test-base #13635883

00:00:25

passed debian/x86_test-gl #13635884

00:00:22

passed debian/x86_test-vk #13635885

00:00:26

passed fedora/x86_build #13635887

00:00:19

passed kernel+rootfs_amd64 #13635888

00:00:11

passed kernel+rootfs_arm64 #13635889
aarch64

00:00:12

passed kernel+rootfs_armhf #13635890
aarch64

00:00:11

passed windows_build_vs2019 #13635892
windows shell 1809 mesa

00:00:11

 
  Build X86 64
passed debian-clang #13635899

00:10:10

passed debian-clover #13635900

00:03:59

passed debian-clover-testing #13635895

00:02:06

passed debian-gallium #13635896

00:07:11

passed debian-release #13635897

00:03:21

passed debian-testing #13635893

00:02:37

passed debian-testing-asan #13635894

00:02:50

passed debian-vulkan #13635901

00:01:29

passed fedora-release #13635898

00:03:31

 
  Build Misc
passed debian-android #13635902

00:01:46

passed debian-arm64 #13635904
aarch64

00:02:19

passed debian-arm64-asan #13635905
aarch64

00:03:06

passed debian-arm64-build-test #13635906
aarch64

00:01:30

passed debian-armhf #13635903
aarch64

00:01:35

passed debian-i386 #13635907

00:01:31

passed debian-mingw32-x86_64 #13635908

00:02:30

 
  Software Renderer
passed llvmpipe-piglit-cl #13635909

00:03:43