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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user