From 8518e75d289638b10cb9350f287ccbdf1c927040 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 26 Mar 2010 16:37:22 -0700 Subject: [PATCH] Set the var_type for arrays to error_type until it's implemented. "Fixes" segfaults in array tests. --- ast_to_hir.cpp | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.30.2