mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[qfcc] Use available functions for dealloc use/def
I had written those use/def sets before creating the functions, and it turns out I had goofed slightly with the def chaining.
This commit is contained in:
parent
0c116b8ff0
commit
4b3b6d516a
1 changed files with 2 additions and 4 deletions
|
@ -2537,8 +2537,7 @@ search_for_super_dealloc (sblock_t *sblock)
|
|||
for (statement_t *st = sblock->statements; st; st = st->next) {
|
||||
if (statement_is_return (st)) {
|
||||
op = pseudo_operand (super_dealloc, st->expr);
|
||||
op->next = st->use;
|
||||
st->use = op;
|
||||
statement_add_use (st, op);
|
||||
continue;
|
||||
}
|
||||
if (!statement_is_call (st)) {
|
||||
|
@ -2559,8 +2558,7 @@ search_for_super_dealloc (sblock_t *sblock)
|
|||
selector_t *sel = get_selector (st->expr->e.branch.args);
|
||||
if (sel && strcmp (sel->name, "dealloc") == 0) {
|
||||
op = pseudo_operand (super_dealloc, st->expr);
|
||||
op->next = st->use;
|
||||
st->def = op;
|
||||
statement_add_def (st, op);
|
||||
super_dealloc_found++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue