Re: [Mesa-dev] [PATCH 1/2] glsl: add a empty set_is_lhs on ast_node

2016-04-26 Thread Ian Romanick
On 04/19/2016 07:48 PM, Alejandro Piñeiro wrote: > 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. > --- > > Worth to note that ast_node has other dummy implementations, like > ast_node::hir. > >

[Mesa-dev] [PATCH 1/2] glsl: add a empty set_is_lhs on ast_node

2016-04-19 Thread Alejandro Piñeiro
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. --- Worth to note that ast_node has other dummy implementations, like ast_node::hir. src/compiler/glsl/ast.h | 2 ++ src/compiler/glsl/ast_t