From: Ian Romanick Date: Tue, 23 Mar 2010 19:28:44 +0000 (-0700) Subject: Generate an error for variables declared with type void X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cec65a6b76290ee4da91691bd3ef01c3fb8a0c37;p=mesa.git Generate an error for variables declared with type void --- diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp index feeb0d925dd..62f2068b3a2 100644 --- a/ast_to_hir.cpp +++ b/ast_to_hir.cpp @@ -841,7 +841,7 @@ ast_declarator_list::hir(exec_list *instructions, * FINISHME: declaration at a higher scope. */ - if (decl_type == NULL) { + if ((decl_type == NULL) || decl_type->is_void()) { YYLTYPE loc; loc = this->get_location();