harec

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

commit a9eba9f9dadfa1da0a2ea28d7b7e89b10c13065c
parent 036246e166e19d370bd7cf22dbc07d8a1e1b1736
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu,  1 Jul 2021 13:08:00 -0400

gen: add @end label to functions

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

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

diff --git a/src/gen.c b/src/gen.c @@ -221,6 +221,7 @@ gen_function_decl(struct gen_context *ctx, const struct declaration *decl) pushl(&qdef->func, &ctx->id, "body.%d"); gen_expr(ctx, func->body, ctx->rval); + pushl(&qdef->func, &ctx->id, "end.%d"); if (type_dealias(fntype->func.result)->storage != STORAGE_VOID) { struct qbe_value rval = {0}; load_temp(ctx, &rval, ctx->rval);