glsl2: Also initialize the identifier field of parameter_declarator.
The non-named parameter grammar understandably doesn't set the identifier field. Fixes intermittent failures about void main(void) {} having a named void parameter.
This commit is contained in:
@@ -457,6 +457,7 @@ class ast_parameter_declarator : public ast_node {
|
||||
public:
|
||||
ast_parameter_declarator()
|
||||
{
|
||||
this->identifier = NULL;
|
||||
this->is_array = false;
|
||||
this->array_size = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user