mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-22 13:44:59 -07:00
Add extra error checks
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user