mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
Don't try to emit code if there have been errors.
The expression tree can't really be trusted if there have been errors. While warnings as errors are another matter, it's not worth sorting out.
This commit is contained in:
parent
adf3e36aee
commit
681bd6f4b2
1 changed files with 2 additions and 0 deletions
|
@ -646,6 +646,8 @@ finish_function (function_t *f)
|
|||
void
|
||||
emit_function (function_t *f, expr_t *e)
|
||||
{
|
||||
if (pr.error_count)
|
||||
return;
|
||||
f->code = pr.code->size;
|
||||
lineno_base = f->def->line;
|
||||
f->sblock = make_statements (e);
|
||||
|
|
Loading…
Reference in a new issue