mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
free temp defs at the end of each expr block. CustomTF has gone from 64 to 25
locals.
This commit is contained in:
parent
9d2bf8df19
commit
febb139a41
1 changed files with 4 additions and 2 deletions
|
@ -924,10 +924,10 @@ emit_expr (expr_t *e)
|
|||
if (e->e.expr.e1)
|
||||
def = emit_sub_expr (e->e.expr.e1, 0);
|
||||
PR_Statement (op_return, def, 0);
|
||||
return;
|
||||
break;
|
||||
case 'g':
|
||||
emit_branch (op_goto, 0, e->e.expr.e1);
|
||||
return;
|
||||
break;
|
||||
default:
|
||||
fprintf (stderr,
|
||||
"%s:%d: warning: unused expression ignored\n",
|
||||
|
@ -935,6 +935,7 @@ emit_expr (expr_t *e)
|
|||
emit_expr (e->e.expr.e1);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case ex_def:
|
||||
case ex_int:
|
||||
case ex_float:
|
||||
|
@ -945,4 +946,5 @@ emit_expr (expr_t *e)
|
|||
strings + e->file, e->line);
|
||||
break;
|
||||
}
|
||||
PR_FreeTempDefs ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue