summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ast_to_hir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp
index feeb0d925d..62f2068b3a 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();