mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-14 11:50:17 +01:00
glsl: Fix erroneous cast in ast_jump_statement::hir()
Return values were erroneously cast from (ir_rvalue*) to (ir_expression*). NOTE: This is a candidate for the 7.9 branch.
This commit is contained in:
parent
e16c9d5d03
commit
b4cdba687c
1 changed files with 1 additions and 2 deletions
|
|
@ -2636,8 +2636,7 @@ ast_jump_statement::hir(exec_list *instructions,
|
|||
state->current_function->function_name());
|
||||
}
|
||||
|
||||
ir_expression *const ret = (ir_expression *)
|
||||
opt_return_value->hir(instructions, state);
|
||||
ir_rvalue *const ret = opt_return_value->hir(instructions, state);
|
||||
assert(ret != NULL);
|
||||
|
||||
/* Implicit conversions are not allowed for return values. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue