From 1e1ebbe6df456a4677d64a535bbb553ba4f702ea Mon Sep 17 00:00:00 2001 From: Mihai Preda Date: Mon, 2 May 2022 15:31:29 +0300 Subject: [PATCH] gallivm: use LLVM opaque pointers in lp_bld_arit.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_arit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c index 9cff0162b23..2061902a215 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_arit.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.c @@ -3757,7 +3757,7 @@ lp_build_fpstate_set_denorms_zero(struct gallivm_state *gallivm, LLVMBuilderRef builder = gallivm->builder; LLVMValueRef mxcsr_ptr = lp_build_fpstate_get(gallivm); LLVMValueRef mxcsr = - LLVMBuildLoad(builder, mxcsr_ptr, "mxcsr"); + LLVMBuildLoad2(builder, LLVMInt32TypeInContext(gallivm->context), mxcsr_ptr, "mxcsr"); if (util_get_cpu_caps()->has_daz) { /* Enable denormals are zero mode */