mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
nir: initialize value in copy_prop_vars_block
Fixes following valgrind warning:
==27561== Conditional jump or move depends on uninitialised value(s)
==27561== at 0x667856B: value_set_ssa_components (nir_opt_copy_prop_vars.c:78)
==27561== by 0x667A1C4: copy_prop_vars_block (nir_opt_copy_prop_vars.c:797)
Fixes: 62332d139c "nir: Add a local variable-based copy propagation pass"
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
parent
97566efe5c
commit
22267feff1
1 changed files with 1 additions and 1 deletions
|
|
@ -763,7 +763,7 @@ copy_prop_vars_block(struct copy_prop_var_state *state,
|
|||
|
||||
struct copy_entry *src_entry =
|
||||
lookup_entry_for_deref(copies, src, nir_derefs_a_contains_b_bit);
|
||||
struct value value;
|
||||
struct value value = {0};
|
||||
if (try_load_from_entry(state, src_entry, b, intrin, src, &value)) {
|
||||
if (value.is_ssa) {
|
||||
/* lookup_load has already ensured that we get a single SSA
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue