Fix AST for GLSL DeclarationStatement

DeclarationStatement wraps a single declaration, not a list.
This commit is contained in:
Rhys Weatherley
2010-11-26 10:06:05 +10:00
parent 950a12f687
commit e6f1fa0637
5 changed files with 7 additions and 10 deletions

View File

@@ -281,10 +281,7 @@ bool Semantic::visit(CaseLabelStatementAST *ast)
bool Semantic::visit(DeclarationStatementAST *ast)
{
for (List<DeclarationAST *> *it = ast->decls; it; it = it->next) {
DeclarationAST *decl = it->value;
declaration(decl);
}
declaration(ast->decl);
return false;
}