mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
glsl: handle error case with ast_post_inc, ast_post_dec
Return ir_rvalue::error_value with ast_post_inc, ast_post_dec if parser error was emitted previously. This way process_array_size won't see bogus IR generated like with commit9c676a6427. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98699 Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (cherry picked from commit03a5acec68)
This commit is contained in:
parent
8d742a1eb1
commit
af8076e1c9
1 changed files with 5 additions and 0 deletions
|
|
@ -1927,6 +1927,11 @@ ast_expression::do_hir(exec_list *instructions,
|
|||
|
||||
error_emitted = op[0]->type->is_error() || op[1]->type->is_error();
|
||||
|
||||
if (error_emitted) {
|
||||
result = ir_rvalue::error_value(ctx);
|
||||
break;
|
||||
}
|
||||
|
||||
type = arithmetic_result_type(op[0], op[1], false, state, & loc);
|
||||
|
||||
ir_rvalue *temp_rhs;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue