diff options
author | Timothy Arceri <[email protected]> | 2019-01-07 10:33:43 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2019-01-07 10:57:00 +1100 |
commit | 6dade5d534a752ba769f2ea91153c6c5d2acb956 (patch) | |
tree | 26fd72f1641fabe2b22a3962178ebe0daedeb3ff /src | |
parent | 17fac393988774c3977d341b9290530f90bb7ef2 (diff) |
nir: avoid uninitialized variable warning
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109231
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/nir/nir_loop_analyze.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_loop_analyze.c b/src/compiler/nir/nir_loop_analyze.c index 259f02a854e..6deb6cb9627 100644 --- a/src/compiler/nir/nir_loop_analyze.c +++ b/src/compiler/nir/nir_loop_analyze.c @@ -252,7 +252,7 @@ compute_induction_information(loop_info_state *state) nir_phi_instr *src_phi = nir_instr_as_phi(src_var->def->parent_instr); - nir_op alu_op; + nir_op alu_op = nir_num_opcodes; /* avoid uninitialized warning */ nir_ssa_def *alu_srcs[2] = {0}; nir_foreach_phi_src(src2, src_phi) { nir_loop_variable *src_var2 = |