harec

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

commit 958c0abc8572e9cd3d401ae5b2235279beed3a9d
parent 053ef92b0de5f1c375d29e6bd579a7c44bbc80ae
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue,  9 Mar 2021 20:30:02 -0500

gen: fix extype usage in append

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

diff --git a/src/gen.c b/src/gen.c @@ -670,7 +670,7 @@ gen_expr_append(struct gen_context *ctx, pushi(ctx->current, NULL, Q_CALL, &rtfunc, &val, &membsz, NULL); struct qbe_value ptr = {0}; - const struct qbe_type *type = qtype_for_type(ctx, mtype, false); + const struct qbe_type *type = qtype_for_type(ctx, mtype, true); qval_deref(&val); gen_loadtemp(ctx, &ptr, &val, &qbe_long, "append.ptr.%d"); qval_address(&ptr);