From: Eric Anholt Date: Fri, 26 Mar 2010 23:37:22 +0000 (-0700) Subject: Set the var_type for arrays to error_type until it's implemented. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8518e75d289638b10cb9350f287ccbdf1c927040;p=mesa.git Set the var_type for arrays to error_type until it's implemented. "Fixes" segfaults in array tests. --- diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp index 67fed4cc893..d7bfb307a7f 100644 --- a/ast_to_hir.cpp +++ b/ast_to_hir.cpp @@ -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 {