mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
nir: avoid uninitialized variable warning
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109231
This commit is contained in:
parent
17fac39398
commit
6dade5d534
1 changed files with 1 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue