projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17fac39
)
nir: avoid uninitialized variable warning
author
Timothy Arceri
<tarceri@itsqueeze.com>
Sun, 6 Jan 2019 23:33:43 +0000
(10:33 +1100)
committer
Timothy Arceri
<tarceri@itsqueeze.com>
Sun, 6 Jan 2019 23:57:00 +0000
(10:57 +1100)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109231
src/compiler/nir/nir_loop_analyze.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_loop_analyze.c
b/src/compiler/nir/nir_loop_analyze.c
index 259f02a854ec44c0466bcf18d31c041bf9da3464..6deb6cb96272282d87c89d1d431abf6543d8b609 100644
(file)
--- 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 =