diff options
author | Eric Anholt <[email protected]> | 2019-12-16 20:05:18 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2020-02-18 15:40:04 -0800 |
commit | ce611935df5e7e6cc731523c7496c33ba6f7ef20 (patch) | |
tree | 405573d3415cdc4f5985bb31d9a64480e27f8081 /src/gallium/auxiliary/gallivm | |
parent | 45b2ccc6b30c9e4c3382e6b462a2f5357c15d3b8 (diff) |
llvmpipe: Silence "possibly uninitialized value" warning for ssbo_limit.
The condition for the use matches the def, but you can't trust a compiler
to notice.
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_tgsi_soa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index 38e92cb67d3..8dad6082390 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -3483,7 +3483,7 @@ load_emit( scalar_ptr = is_shared ? bld->shared_ptr : bld->ssbos[buf]; - LLVMValueRef ssbo_limit; + LLVMValueRef ssbo_limit = NULL; if (!is_shared) { ssbo_limit = LLVMBuildAShr(gallivm->builder, bld->ssbo_sizes[buf], lp_build_const_int32(gallivm, 2), ""); @@ -3602,7 +3602,7 @@ store_emit( scalar_ptr = is_shared ? bld->shared_ptr : bld->ssbos[buf]; - LLVMValueRef ssbo_limit; + LLVMValueRef ssbo_limit = NULL; if (!is_shared) { ssbo_limit = LLVMBuildAShr(gallivm->builder, bld->ssbo_sizes[buf], lp_build_const_int32(gallivm, 2), ""); |