[qfcc] Set correct statement type for memset

Explicit memset expressions were becoming move instructions when
optimizing, which would generally not result in correct values.
This commit is contained in:
Bill Currie 2023-08-23 08:42:53 +09:00
parent 0d491ce68c
commit deb03ca27a

View file

@ -2240,7 +2240,7 @@ statement_memset (sblock_t *sblock, expr_t *e)
count = new_short_expr (expr_uint (count));
}
}
s = new_statement (st_move, opcode, e);
s = new_statement (st_memset, opcode, e);
sblock = statement_subexpr (sblock, dst, &s->opc);
sblock = statement_subexpr (sblock, count, &s->opb);
sblock = statement_subexpr (sblock, val, &s->opa);