mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
nir_opt_constant_folding: Fix nir_deref_path leak
Cc: Mesa-stable Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23173>
This commit is contained in:
parent
ce07aabab1
commit
009d2de88f
1 changed files with 1 additions and 0 deletions
|
|
@ -167,6 +167,7 @@ const_value_for_deref(nir_deref_instr *deref)
|
|||
|
||||
/* We have to have ended at a vector */
|
||||
assert(c->num_elements == 0);
|
||||
nir_deref_path_finish(&path);
|
||||
return v ? v : c->values;
|
||||
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue