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:
Bill Currie 2012-12-22 19:22:08 +09:00
parent adf3e36aee
commit 681bd6f4b2

View file

@ -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);