llvmpipe: Silence uninitialized variable warning about "chan"

Both arms of an if define it, but gcc doesn't 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:52:22 -08:00
parent ce611935df
commit b32bd704c0

View file

@ -874,7 +874,7 @@ lp_build_insert_soa_chan(struct lp_build_context *bld,
const unsigned width = chan_desc.size;
const unsigned start = chan_desc.shift;
const unsigned stop = start + width;
LLVMValueRef chan;
LLVMValueRef chan = NULL;
switch(chan_desc.type) {
case UTIL_FORMAT_TYPE_UNSIGNED: