harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bae5737c457a55d25c293cef4412abeb47d03289
parent 25eb10d89a174842c937e1466417da01cae8b1cd
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 30 Aug 2021 08:42:15 +0200

Revert "gen: stop generating after terminating expression"

This reverts commit 25eb10d89a174842c937e1466417da01cae8b1cd.

Diffstat:
Msrc/gen.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gen.c b/src/gen.c @@ -1332,7 +1332,7 @@ gen_expr_compound_with(struct gen_context *ctx, push_scope(ctx, expr->compound.scope); for (const struct expressions *exprs = &expr->compound.exprs; exprs; exprs = exprs->next) { - if (!exprs->next || exprs->expr->terminates) { + if (!exprs->next) { struct gen_value gv = gen_expr_with( ctx, exprs->expr, out); pop_scope(ctx, !exprs->expr->terminates);