gallivm: fix uninitialized-variable warnings

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Marek Olšák
2015-02-20 20:14:33 +01:00
parent b21ad12485
commit 6f273ec408
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -509,7 +509,7 @@ void
gallivm_compile_module(struct gallivm_state *gallivm)
{
LLVMValueRef func;
int64_t time_begin;
int64_t time_begin = 0;
assert(!gallivm->compiled);
@@ -221,7 +221,7 @@ lp_build_rho(struct lp_build_sample_context *bld,
struct lp_build_context *coord_bld = &bld->coord_bld;
struct lp_build_context *rho_bld = &bld->lodf_bld;
const unsigned dims = bld->dims;
LLVMValueRef ddx_ddy[2];
LLVMValueRef ddx_ddy[2] = {NULL};
LLVMBuilderRef builder = bld->gallivm->builder;
LLVMTypeRef i32t = LLVMInt32TypeInContext(bld->gallivm->context);
LLVMValueRef index0 = LLVMConstInt(i32t, 0, 0);