mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 14:10:09 +01:00
Use ir_function_signature::function_name() rather than direct access.
This commit is contained in:
parent
67a092ae09
commit
f96c52ba2e
1 changed files with 2 additions and 2 deletions
|
|
@ -2130,7 +2130,7 @@ ast_jump_statement::hir(exec_list *instructions,
|
|||
_mesa_glsl_error(& loc, state,
|
||||
"`return` with a value, in function `%s' "
|
||||
"returning void",
|
||||
state->current_function->definition->label);
|
||||
state->current_function->function_name());
|
||||
}
|
||||
|
||||
ir_expression *const ret = (ir_expression *)
|
||||
|
|
@ -2150,7 +2150,7 @@ ast_jump_statement::hir(exec_list *instructions,
|
|||
_mesa_glsl_error(& loc, state,
|
||||
"`return' with no value, in function %s returning "
|
||||
"non-void",
|
||||
state->current_function->definition->label);
|
||||
state->current_function->function_name());
|
||||
}
|
||||
inst = new ir_return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue