gallivm: silence uninitialized var warning
authorBrian Paul <brianp@vmware.com>
Thu, 13 May 2010 19:24:21 +0000 (13:24 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 13 May 2010 20:15:44 +0000 (14:15 -0600)
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c

index 00628054728311ec760f22481c1903c13c4acd94..8db6501c80ee31d79439ae667733d27f60086bcb 100644 (file)
@@ -420,7 +420,7 @@ emit_fetch(
    const struct tgsi_full_src_register *reg = &inst->Src[index];
    unsigned swizzle = tgsi_util_get_full_src_register_swizzle( reg, chan_index );
    LLVMValueRef res;
-   LLVMValueRef addr;
+   LLVMValueRef addr = NULL;
 
    switch (swizzle) {
    case TGSI_SWIZZLE_X: