From: Ian Romanick Date: Tue, 3 Aug 2010 22:02:35 +0000 (-0700) Subject: glsl2: Don't try to construct an ir_assignment with an invalid LHS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e9ce2eb56a087c2544112700ae1abe3f96648dd;p=mesa.git glsl2: Don't try to construct an ir_assignment with an invalid LHS --- diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index b65a323a8d7..14c528075bb 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -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); }