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 <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3867>
This commit is contained in:
Eric Anholt 2019-12-16 20:05:18 -08:00
parent 45b2ccc6b3
commit ce611935df

View file

@ -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), "");