summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ast.h
diff options
context:
space:
mode:
authorAlejandro Piñeiro <[email protected]>2016-04-19 11:15:54 +0200
committerAlejandro Piñeiro <[email protected]>2016-05-26 08:39:07 +0200
commitb9f90ef652dae687a5aff97f9132b374320638a5 (patch)
tree739e60e50394432e060270163d4b82e7e95a3d87 /src/compiler/glsl/ast.h
parent5b2675093e863a52b610f112884ae12d42513770 (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.h')
-rw-r--r--src/compiler/glsl/ast.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/glsl/ast.h b/src/compiler/glsl/ast.h
index fb25bb357a3..ca98ed2834d 100644
--- a/src/compiler/glsl/ast.h
+++ b/src/compiler/glsl/ast.h
@@ -126,6 +126,8 @@ public:
exec_node link;
+ virtual void set_is_lhs(bool);
+
protected:
/**
* The only constructor is protected so that only derived class objects can