mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Produce cleaner output for a = b op c.
This commit is contained in:
parent
d93d8d7d46
commit
370f0b97ed
1 changed files with 3 additions and 0 deletions
|
@ -289,10 +289,13 @@ expr_assign (sblock_t *sblock, expr_t *e, operand_t **op)
|
|||
|
||||
if (e->e.expr.op == '=') {
|
||||
sblock = statement_subexpr (sblock, dst_expr, &dst);
|
||||
src = dst;
|
||||
sblock = statement_subexpr (sblock, src_expr, &src);
|
||||
ofs = 0;
|
||||
if (op)
|
||||
*op = dst;
|
||||
if (src == dst)
|
||||
return sblock;
|
||||
} else {
|
||||
//FIXME this sucks. find a better way to handle both pointer
|
||||
//dereferences and pointer assignements
|
||||
|
|
Loading…
Reference in a new issue