Add extra error checks

This commit is contained in:
gingerBill
2021-01-18 11:34:09 +00:00
parent 2990b3efd5
commit 53d8ec4d15
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -1999,6 +1999,10 @@ int main(int arg_count, char const **arg_ptr) {
return 1;
}
if (any_errors()) {
return 1;
}
temp_allocator_free_all(&temporary_allocator_data);
timings_start_section(timings, str_lit("type check"));
@@ -2013,6 +2017,9 @@ int main(int arg_count, char const **arg_ptr) {
if (checked_inited) {
check_parsed_files(&checker);
}
if (any_errors()) {
return 1;
}
temp_allocator_free_all(&temporary_allocator_data);