nir: Handle complex derefs in nir_split_array_vars
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 30 Aug 2019 18:21:00 +0000 (13:21 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 6 Sep 2019 23:39:01 +0000 (23:39 +0000)
commit37cdb7fc4465cba67b220f940404338f6ff98ee1
tree4ad342ab9be410f5e29458d36c82f68496da0803
parent34541be7b04d76c5589600553995467daca6c30d
nir: Handle complex derefs in nir_split_array_vars

We already bail and don't split the vars but we were passing a NULL to
_mesa_hash_table_search which is not allowed.

Fixes: f1cb3348f1 "nir/split_vars: Properly bail in the presence of ..."
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir_split_vars.c