diff options
author | Ian Romanick <[email protected]> | 2011-12-23 09:56:03 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-01-06 14:32:50 -0800 |
commit | fa0a9ac5cdf49865cfc289c4326c73c9dd4a61c5 (patch) | |
tree | 6e0eb68b1d701086f32494e88e90fc8c70356c29 /src/glsl/ast_to_hir.cpp | |
parent | c87247f6a8c5505fea3fa29dac372f9f5316a118 (diff) |
glsl: Track descriptions of some expressions that can't be l-values
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index f0c92187507..2644ed28567 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -1463,6 +1463,9 @@ ast_expression::hir(exec_list *instructions, case ast_pre_inc: case ast_pre_dec: { + this->non_lvalue_description = (this->oper == ast_pre_inc) + ? "pre-increment operation" : "pre-decrement operation"; + op[0] = this->subexpressions[0]->hir(instructions, state); op[1] = constant_one_for_inc_dec(ctx, op[0]->type); @@ -1481,6 +1484,8 @@ ast_expression::hir(exec_list *instructions, case ast_post_inc: case ast_post_dec: { + this->non_lvalue_description = (this->oper == ast_post_inc) + ? "post-increment operation" : "post-decrement operation"; op[0] = this->subexpressions[0]->hir(instructions, state); op[1] = constant_one_for_inc_dec(ctx, op[0]->type); |