fix a slew of false positives with unused var checking

This commit is contained in:
Bill Currie 2001-09-23 04:08:03 +00:00
parent c8ab7d04ef
commit 2054ec016a

View file

@ -56,11 +56,11 @@ emit_statement (int sline, opcode_t *op, def_t *var_a, def_t *var_b, def_t *var_
}
if (var_b) {
var_b->users--;
var_a->used = 1;
var_b->used = 1;
}
if (var_c) {
var_c->users--;
var_a->used = 1;
var_c->used = 1;
}
PR_AddStatementRef (var_a, statement, 0);
PR_AddStatementRef (var_b, statement, 1);