diff options
| author | gingerBill <bill@gingerbill.org> | 2024-04-28 12:05:21 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-04-28 12:05:21 +0100 |
| commit | f428f26c8e18a4f74b396adf6f4d21526c3c9d5e (patch) | |
| tree | d8571ac11975d000d93ed409b9bec2a0c031668e /src/error.cpp | |
| parent | 44c9b988bbc54203307d50418c79188aee53c08c (diff) | |
| parent | 51d4dde63c715b745255a99f5d06dcd6f1fd9809 (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/error.cpp')
| -rw-r--r-- | src/error.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/error.cpp b/src/error.cpp index 7fb62c966..bbbb98053 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -403,6 +403,8 @@ gb_internal void error_va(TokenPos const &pos, TokenPos end, char const *fmt, va error_out("\n"); show_error_on_line(pos, end); } else { + global_error_collector.curr_error_value = {}; + global_error_collector.curr_error_value_set.store(false); global_error_collector.count.fetch_sub(1); } try_pop_error_value(); |