harec

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

commit 29cd66e401eba7732a017c79bdc966f5a17a630f
parent 744df74ba45e019f6b8027597c5a6982b4484535
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  9 Aug 2021 10:49:48 +0200

gen: set gvout for default match case

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Msrc/gen.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/gen.c b/src/gen.c @@ -1308,7 +1308,8 @@ next: } if (_default) { - gen_expr_with(ctx, _default->value, out); + bval = gen_expr_with(ctx, _default->value, out); + branch_copyresult(ctx, bval, gvout, out); } push(&ctx->current->body, &lout); @@ -1382,7 +1383,8 @@ next: } if (_default) { - gen_expr_with(ctx, _default->value, out); + bval = gen_expr_with(ctx, _default->value, out); + branch_copyresult(ctx, bval, gvout, out); } push(&ctx->current->body, &lout);