nir: avoiding reading unitialized memory when using nir_dest_copy
authorFilip Gawin <filip.gawin@zoho.com>
Tue, 12 Oct 2021 17:22:26 +0000 (19:22 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 Oct 2021 02:21:20 +0000 (02:21 +0000)
commit28a6e45a0f88f8ebc93a49799379ed1e6b9ab1ff
tree4370a6c8c69013176ae73d68c7b631ddb9e82aec
parent9539315f973c5b060f1929f289a9b783790a2237
nir: avoiding reading unitialized memory when using nir_dest_copy

Deeper in chain of calls, function "src_has_indirect" is used (which
reads "is_ssa" and "reg.indirect").

Fixes: d1eae6f36be6 ("nir: Properly clean up nir_src/dest indirects")

Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13317>
src/compiler/nir/nir.c