Set the var_type for arrays to error_type until it's implemented.

"Fixes" segfaults in array tests.
This commit is contained in:
Eric Anholt
2010-03-26 16:37:22 -07:00
committed by Ian Romanick
parent 76ea56c007
commit 8518e75d28

View File

@@ -947,6 +947,7 @@ ast_declarator_list::hir(exec_list *instructions,
/* FINISHME: Handle array declarations. Note that this requires
* FINISHME: complete handling of constant expressions.
*/
var_type = glsl_type::error_type;
/* FINISHME: Reject delcarations of multidimensional arrays. */
} else {