From 3a6c8b8b169e213ef94caf8f521fab073f110f21 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 2 Sep 2003 06:23:57 +0000 Subject: [PATCH] wrong place to decrement uses. now have a problem in switch :/ --- tools/qfcc/source/emit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/emit.c b/tools/qfcc/source/emit.c index 27529e518..a906832f6 100644 --- a/tools/qfcc/source/emit.c +++ b/tools/qfcc/source/emit.c @@ -107,6 +107,7 @@ 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 @@ -557,7 +558,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; }