harec

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

commit 539cbfa15ec1a58435671192ea059b9061ef5fb6
parent 71d3eb72cc7e225083a8f008e2608ca79f6d2e76
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 30 Dec 2020 19:35:55 -0500

check: set for loop result to void

Diffstat:
Msrc/check.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/check.c b/src/check.c @@ -419,6 +419,7 @@ check_expr_for(struct context *ctx, { trenter(TR_CHECK, "if"); expr->type = EXPR_FOR; + expr->result = &builtin_type_void; struct scope *scope = scope_push(&ctx->scope, TR_CHECK); expr->_for.scope = scope;