diff options
author | Alejandro Piñeiro <[email protected]> | 2016-04-19 11:15:54 +0200 |
---|---|---|
committer | Alejandro Piñeiro <[email protected]> | 2016-05-26 08:39:07 +0200 |
commit | b9f90ef652dae687a5aff97f9132b374320638a5 (patch) | |
tree | 739e60e50394432e060270163d4b82e7e95a3d87 /src/compiler/glsl/ast_to_hir.cpp | |
parent | 5b2675093e863a52b610f112884ae12d42513770 (diff) |
glsl: add a empty set_is_lhs on ast_node
Just to allow to call set_is_lhs on any ast_node without a casting. Useful
when processing a ast_node list that we know it contain ast_expression.
v2: comment out new_value to avoid unused parameter warning (Ian Romanick)
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ast_to_hir.cpp')
-rw-r--r-- | src/compiler/glsl/ast_to_hir.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp index 22bc0083326..e1e26f8f6ac 100644 --- a/src/compiler/glsl/ast_to_hir.cpp +++ b/src/compiler/glsl/ast_to_hir.cpp @@ -1054,6 +1054,11 @@ ast_node::has_sequence_subexpression() const } void +ast_node::set_is_lhs(bool /* new_value */) +{ +} + +void ast_function_expression::hir_no_rvalue(exec_list *instructions, struct _mesa_glsl_parse_state *state) { |