mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
correct the temp def counting when casting
This commit is contained in:
parent
6086aa2b99
commit
7cffeb27bf
1 changed files with 1 additions and 2 deletions
|
@ -107,7 +107,6 @@ add_statement_ref (def_t *def, dstatement_t *st, int field)
|
|||
|
||||
if (def->alias) {
|
||||
def = def->alias;
|
||||
def->users--;
|
||||
def->used = 1;
|
||||
reloc_op_def_ofs (def, st_ofs, field);
|
||||
} else
|
||||
|
@ -558,7 +557,7 @@ emit_sub_expr (expr_t *e, def_t *dest)
|
|||
tmp = new_def (e->e.expr.type, 0, def_a->scope);
|
||||
tmp->ofs = 0;
|
||||
tmp->alias = def_a;
|
||||
tmp->users = def_a->users;
|
||||
tmp->users = def_a->users--;
|
||||
tmp->freed = 1;
|
||||
return tmp;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue