nir/deref: Fix a typo

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3754
Fixes: df51518dc5 "nir/opt_deref: Add a deref mode specialization..."
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7459>
This commit is contained in:
Jason Ekstrand 2020-11-05 09:56:42 -06:00 committed by Marge Bot
parent 60c5729d16
commit 61d2badbf4

View file

@ -945,7 +945,7 @@ opt_remove_cast_cast(nir_deref_instr *cast)
static bool
opt_restrict_deref_modes(nir_deref_instr *deref)
{
if (deref->type == nir_deref_type_var) {
if (deref->deref_type == nir_deref_type_var) {
assert(deref->modes == deref->var->data.mode);
return false;
}