summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-12-29 13:18:59 +1100
committerTimothy Arceri <[email protected]>2016-12-29 13:47:11 +1100
commit5f323198ea598b97f3a0d7bc0a11eb92a118c87a (patch)
tree5176b74c5342f0f148288725aff23f8f8187a0c0 /src/compiler/nir
parent44f833ab184640cf0a584476a2dd30f8912d1fba (diff)
nir: stop gcc warning about uninitialised variables
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_opt_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_if.c b/src/compiler/nir/nir_opt_if.c
index a804ee972c1..ec66175027a 100644
--- a/src/compiler/nir/nir_opt_if.c
+++ b/src/compiler/nir/nir_opt_if.c
@@ -120,7 +120,7 @@ opt_peel_loop_initial_if(nir_loop *loop)
/* We already know we have exactly one continue */
assert(exec_list_length(&cond_phi->srcs) == 2);
- uint32_t entry_val, continue_val;
+ uint32_t entry_val = 0, continue_val = 0;
nir_foreach_phi_src(src, cond_phi) {
assert(src->src.is_ssa);
nir_const_value *const_src = nir_src_as_const_value(src->src);