mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 15:41:59 +00:00
[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:
parent
0d491ce68c
commit
deb03ca27a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue