From: Aras Pranckevicius Date: Mon, 2 Aug 2010 07:22:26 +0000 (+0300) Subject: glsl2: initialize is_array and array_size of ast_parameter_declarator X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b35703df107b50b2c3f5cd4d56790921e8106324;p=mesa.git glsl2: initialize is_array and array_size of ast_parameter_declarator The non-array path of glsl_parser.ypp wasn't setting is_array to false. --- diff --git a/src/glsl/ast.h b/src/glsl/ast.h index 655054ff6fa..aa769da3f65 100644 --- a/src/glsl/ast.h +++ b/src/glsl/ast.h @@ -455,6 +455,12 @@ public: class ast_parameter_declarator : public ast_node { public: + ast_parameter_declarator() + { + this->is_array = false; + this->array_size = 0; + } + virtual void print(void) const; virtual ir_rvalue *hir(exec_list *instructions,