harec

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

commit 7fc0ec9f68b3513c8988d8465a91295cd410b360
parent 5e23de9ae7d51d8e456d734fbc1826b9e49fb84c
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu,  5 Aug 2021 13:11:52 +0200

gen: use mklabel in gen_function_decl

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

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

diff --git a/src/gen.c b/src/gen.c @@ -1010,7 +1010,7 @@ gen_function_decl(struct gen_context *ctx, const struct declaration *decl) ctx->current = &qdef->func; struct qbe_statement start_label = {0}; - genl(&start_label, &ctx->id, "start.%d"); + mklabel(ctx, &start_label, "start.%d"); push(&qdef->func.prelude, &start_label); if (type_dealias(fntype->func.result)->storage != STORAGE_VOID) {