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