diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 1ac1415d1a6..60f6786c77f 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -3640,7 +3640,7 @@ typedef struct nir_shader { foreach_list_typed(nir_function, func, node, &(shader)->functions) static inline nir_function_impl * -nir_shader_get_entrypoint(nir_shader *shader) +nir_shader_get_entrypoint(const nir_shader *shader) { nir_function *func = NULL;