From 61d2badbf472bec3da16f5faca6f668d2164e101 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 5 Nov 2020 09:56:42 -0600 Subject: [PATCH] nir/deref: Fix a typo Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3754 Fixes: df51518dc5b "nir/opt_deref: Add a deref mode specialization..." Reviewed-by: Caio Marcelo de Oliveira Filho Reviewed-by: Erik Faye-Lund Part-of: --- src/compiler/nir/nir_deref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c index 2da9d8c8d6d..c32731d156c 100644 --- a/src/compiler/nir/nir_deref.c +++ b/src/compiler/nir/nir_deref.c @@ -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; }