correct the temp def counting when casting

This commit is contained in:
Bill Currie 2003-08-24 08:17:31 +00:00
parent 6086aa2b99
commit 7cffeb27bf

View file

@ -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;
}