diff options
author | Eric Anholt <eric@anholt.net> | 2010-03-26 16:37:22 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-26 17:51:41 -0700 |
commit | 8518e75d289638b10cb9350f287ccbdf1c927040 (patch) | |
tree | 1229613a892c0bae2bf5ad756c508c84aa47def4 | |
parent | 76ea56c007263ec3b79234e7b775e3a7b519a54a (diff) |
Set the var_type for arrays to error_type until it's implemented.
"Fixes" segfaults in array tests.
-rw-r--r-- | ast_to_hir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp index 67fed4cc89..d7bfb307a7 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 { |