nir: use a _clone so users calling their variable clone don't get a warning

I've got code using clone name and it gets confused.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24687>
This commit is contained in:
Dave Airlie 2023-09-06 16:23:36 +10:00 committed by Marge Bot
parent 6417f1021a
commit 93bb08d1f7

View file

@ -4687,8 +4687,8 @@ should_print_nir(UNUSED nir_shader *shader)
} \
do_pass if (NIR_DEBUG(CLONE)) \
{ \
nir_shader *clone = nir_shader_clone(ralloc_parent(nir), nir); \
nir_shader_replace(nir, clone); \
nir_shader *_clone = nir_shader_clone(ralloc_parent(nir), nir);\
nir_shader_replace(nir, _clone); \
} \
if (NIR_DEBUG(SERIALIZE)) { \
nir_shader_serialize_deserialize(nir); \