From d4f7337d14eb8c135a9a89dcd0e01fc93214a927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20Wasserb=C3=A4ch?= Date: Sat, 4 Sep 2021 14:01:39 +0200 Subject: [PATCH] fix(clover/llvm): update code to build with recent versions of LLVM 14 (Git) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `hasAttribute()` in `llvm::AttributeList` is gone, use `hasParamAttr()` instead. This fixes an FTBFS. Signed-off-by: Kai Wasserbäch Reviewed-by: Samuel Pitoiset Reviewed-by: Karol Herbst Part-of: --- src/gallium/frontends/clover/llvm/codegen/common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/frontends/clover/llvm/codegen/common.cpp b/src/gallium/frontends/clover/llvm/codegen/common.cpp index 2ed46794def..13cb91547ac 100644 --- a/src/gallium/frontends/clover/llvm/codegen/common.cpp +++ b/src/gallium/frontends/clover/llvm/codegen/common.cpp @@ -233,8 +233,8 @@ namespace { } } else { - const bool needs_sign_ext = f.getAttributes().hasAttribute( - arg.getArgNo() + 1, ::llvm::Attribute::SExt); + const bool needs_sign_ext = f.getAttributes().hasParamAttr( + arg.getArgNo(), ::llvm::Attribute::SExt); args.emplace_back(module::argument::scalar, arg_api_size, target_size, target_align,