commit 0d91bf3e43fc96ca6ab1116eb4fdcb6b64976693
parent 8ffde0ac1457cb165a9fb8ab74fc967050932266
Author: Drew DeVault <sir@cmpwn.com>
Date: Tue, 16 Feb 2021 21:47:39 -0500
gen: fix use of extypes in assignment
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gen.c b/src/gen.c
@@ -823,8 +823,8 @@ gen_expr_assign(struct gen_context *ctx,
const struct type *objtype = expr->assign.indirect
? object->result->pointer.referent : object->result;
const struct qbe_type *vtype =
- qtype_for_type(ctx, value->result, true);
- const struct qbe_type *otype = qtype_for_type(ctx, objtype, true);
+ qtype_for_type(ctx, value->result, false);
+ const struct qbe_type *otype = qtype_for_type(ctx, objtype, false);
struct qbe_value src = {0};
if (expr->assign.indirect) {