glsl: handle error case with ast_post_inc, ast_post_dec
authorTapani Pälli <tapani.palli@intel.com>
Tue, 7 Aug 2018 05:20:29 +0000 (08:20 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 9 Aug 2018 10:07:16 +0000 (13:07 +0300)
commit03a5acec687454c7fe227b4bdd2db97d515f1af7
tree8c16eb972f1be1fedbf4dca76b0ed167a7bd773f
parentfdfb689a48b11954f35fe39ad49cbe2108f2e279
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 commit 9c676a64273.

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>
src/compiler/glsl/ast_to_hir.cpp