harec

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

commit 58dfac01f784ab9639dd8e0f65f6b7c52db93f83
parent d5d19d4ce85aec0b0b618499c5fa884116b38377
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 24 Jan 2021 12:28:13 -0500

gen: fix extypes as function params

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

diff --git a/src/gen.c b/src/gen.c @@ -1975,7 +1975,7 @@ gen_function_decl(struct gen_context *ctx, const struct declaration *decl) param = *next = xcalloc(1, sizeof(struct qbe_func_param)); assert(!obj->ident.ns); // Invariant param->name = strdup(obj->ident.name); - param->type = qtype_for_type(ctx, obj->type, true); + param->type = qtype_for_type(ctx, obj->type, false); if (type_is_aggregate(obj->type)) { struct gen_binding *binding =