mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 02:41:30 +00:00
[qfcc] Use correct assignment statement type
Just another minor detail lost in the assignment rewrite. With this, all tests pass when optimizing.
This commit is contained in:
parent
a98f0e04eb
commit
d30c895c13
1 changed files with 3 additions and 1 deletions
|
@ -760,6 +760,8 @@ expr_assign (sblock_t *sblock, expr_t *e, operand_t **op)
|
|||
sblock = statement_subexpr (sblock, src_expr, &src);
|
||||
}
|
||||
}
|
||||
type = st_assign;
|
||||
|
||||
if (0) {
|
||||
dereference_dst:
|
||||
// dst_expr is a dereferenced pointer, so need to un-dereference it
|
||||
|
@ -773,6 +775,7 @@ dereference_dst:
|
|||
sblock = statement_subexpr (sblock, dst_expr, &dst);
|
||||
ofs = 0;
|
||||
}
|
||||
type = st_ptrassign;
|
||||
}
|
||||
if (op) {
|
||||
*op = src;
|
||||
|
@ -780,7 +783,6 @@ dereference_dst:
|
|||
if (src == dst) {
|
||||
return sblock;
|
||||
}
|
||||
type = st_assign;
|
||||
|
||||
s = new_statement (type, opcode, e);
|
||||
s->opa = src;
|
||||
|
|
Loading…
Reference in a new issue