mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 19:20:08 +01:00
glsl2: Don't try to construct an ir_assignment with an invalid LHS
This commit is contained in:
parent
8dbdcb0b43
commit
8e9ce2eb56
1 changed files with 2 additions and 3 deletions
|
|
@ -555,9 +555,8 @@ do_assignment(exec_list *instructions, struct _mesa_glsl_parse_state *state,
|
|||
NULL));
|
||||
deref_var = new(ctx) ir_dereference_variable(var);
|
||||
|
||||
instructions->push_tail(new(ctx) ir_assignment(lhs,
|
||||
deref_var,
|
||||
NULL));
|
||||
if (!error_emitted)
|
||||
instructions->push_tail(new(ctx) ir_assignment(lhs, deref_var, NULL));
|
||||
|
||||
return new(ctx) ir_dereference_variable(var);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue