diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index f05d0406a..92e0b4104 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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); |