From bb356bffa5dcf95d4439ce0ba55bc068c5a72ff1 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 20 Dec 2012 15:27:15 +0100 Subject: [PATCH] that should have gone into the second to last commit --- ast.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ast.c b/ast.c index 8a70549..51104b3 100644 --- a/ast.c +++ b/ast.c @@ -1568,13 +1568,14 @@ bool ast_block_codegen(ast_block *self, ast_function *func, bool lvalue, ir_valu for (i = 0; i < vec_size(self->exprs); ++i) { - ast_expression_codegen *gen = self->exprs[i]->expression.codegen; + ast_expression_codegen *gen; if (func->curblock->final && !ast_istype(self->exprs[i], ast_label)) { if (OPTS_FLAG(ALLOW_UNREACHABLE_CODE)) continue; compile_error(ast_ctx(self->exprs[i]), "unreachable statement"); return false; } + gen = self->exprs[i]->expression.codegen; if (!(*gen)(self->exprs[i], func, false, out)) return false; } -- 2.39.2