Set the var_type for arrays to error_type until it's implemented.
authorEric Anholt <eric@anholt.net>
Fri, 26 Mar 2010 23:37:22 +0000 (16:37 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 27 Mar 2010 00:51:41 +0000 (17:51 -0700)
"Fixes" segfaults in array tests.

ast_to_hir.cpp

index 67fed4cc8931600b411b51bdd8fbaee4eef8f952..d7bfb307a7f5ab0b0dc89a31d43e5bf9692590e5 100644 (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 {