diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 43b527be5c9..c04bf50e057 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -4819,7 +4819,7 @@ bool nir_opt_memcpy(nir_shader *shader); bool nir_lower_memcpy(nir_shader *shader); bool nir_fixup_deref_modes(nir_shader *shader); -void nir_fixup_deref_types(nir_shader *shader); +bool nir_fixup_deref_types(nir_shader *shader); bool nir_lower_global_vars_to_local(nir_shader *shader); void nir_lower_constant_to_temp(nir_shader *shader); diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c index 3ac7d0f3eda..1adc2e99ff3 100644 --- a/src/compiler/nir/nir_deref.c +++ b/src/compiler/nir/nir_deref.c @@ -492,14 +492,14 @@ nir_fixup_deref_types_instr(UNUSED struct nir_builder *b, nir_instr *instr, UNUS } /* Update deref types when array sizes have changed. */ -void +bool nir_fixup_deref_types(nir_shader *shader) { - nir_shader_instructions_pass(shader, nir_fixup_deref_types_instr, - nir_metadata_control_flow | - nir_metadata_live_defs | - nir_metadata_instr_index, - NULL); + return nir_shader_instructions_pass(shader, nir_fixup_deref_types_instr, + nir_metadata_control_flow | + nir_metadata_live_defs | + nir_metadata_instr_index, + NULL); } static bool