diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-17 11:39:08 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-17 11:40:00 +0100 |
| commit | 67694c0df07c758effbc7dcb10c76a2b2bffe5d0 (patch) | |
| tree | d1b0d26cfbb81fba0b16410856dcf21a3f274a69 /src/codegen/codegen.cpp | |
| parent | eb424bb315a880bf52fe843733445dfb502c1525 (diff) | |
VarDecl and ConstDecl split; error, warning, et al. now global
Diffstat (limited to 'src/codegen/codegen.cpp')
| -rw-r--r-- | src/codegen/codegen.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/codegen/codegen.cpp b/src/codegen/codegen.cpp index 04f1f88ea..a33b9e633 100644 --- a/src/codegen/codegen.cpp +++ b/src/codegen/codegen.cpp @@ -7,17 +7,9 @@ struct ssaGen { }; b32 ssa_gen_init(ssaGen *s, Checker *c) { - if (c->error_collector.count != 0) + if (global_error_collector.count != 0) return false; - gb_for_array(i, c->parser->files) { - AstFile *f = &c->parser->files[i]; - if (f->error_collector.count != 0) - return false; - if (f->tokenizer.error_count != 0) - return false; - } - isize tc = c->parser->total_token_count; if (tc < 2) { return false; |