From f1fc0bb567e5fdc92abd121a43fe2a632150c91c Mon Sep 17 00:00:00 2001 From: Mihai Preda Date: Mon, 2 May 2022 15:44:19 +0300 Subject: [PATCH] gallivm: use LLVM opaque pointers in lp_bld_conv.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Acked-by: Marek Olšák Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_conv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_conv.c b/src/gallium/auxiliary/gallivm/lp_bld_conv.c index 1073ff4fa66..69494ed22aa 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_conv.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_conv.c @@ -229,7 +229,7 @@ lp_build_float_to_half(struct gallivm_state *gallivm, */ LLVMValueRef f16 = lp_build_intrinsic_unary(builder, "llvm.convert.to.fp16", i16t, f32); #else - LLVMValueRef f16 = LLVMBuildCall(builder, func, &f32, 1, ""); + LLVMValueRef f16 = LLVMBuildCall2(builder, func_type, func, &f32, 1, ""); #endif ref_result = LLVMBuildInsertElement(builder, ref_result, f16, index, ""); }