diff options
author | Eric Anholt <[email protected]> | 2019-12-16 20:55:23 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2020-02-18 15:40:04 -0800 |
commit | dc8c5af99b04639d46280719cc59f4481e8bd564 (patch) | |
tree | 39c406ebd667e8f308b450b6204ee18ea1ab471d /src/gallium/auxiliary/gallivm | |
parent | d8d34238a6dc61f6c522e2807bc83d434d27e74f (diff) |
llvmpipe: Silence uninitialized variable warning about "vals"
Reviewed-by: Roland Scheidegger <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3867>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c index 05f16d81e56..67b7b69e8f4 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c @@ -425,7 +425,7 @@ static LLVMValueRef emit_load_reg(struct lp_build_nir_context *bld_base, struct gallivm_state *gallivm = bld_base->base.gallivm; LLVMBuilderRef builder = gallivm->builder; int nc = reg->reg->num_components; - LLVMValueRef vals[NIR_MAX_VEC_COMPONENTS]; + LLVMValueRef vals[NIR_MAX_VEC_COMPONENTS] = { NULL }; struct lp_build_context *uint_bld = &bld_base->uint_bld; if (reg->reg->num_array_elems) { LLVMValueRef indirect_val = lp_build_const_int_vec(gallivm, uint_bld->type, reg->base_offset); |