Mesa (glsl2): glsl2: Also initialize the identifier field of parameter_declarator.
Eric Anholt
anholt at kemper.freedesktop.org
Mon Aug 2 18:09:45 UTC 2010
Module: Mesa
Branch: glsl2
Commit: b8db38e1c4f639cb0a063250d43f5a0ef6afd50f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8db38e1c4f639cb0a063250d43f5a0ef6afd50f
Author: Eric Anholt <eric at anholt.net>
Date: Mon Aug 2 11:04:54 2010 -0700
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.
---
src/glsl/ast.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index aa769da..1de285b 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -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;
}
More information about the mesa-commit
mailing list