diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-04-28 11:59:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-28 11:59:18 +0100 |
| commit | 51d4dde63c715b745255a99f5d06dcd6f1fd9809 (patch) | |
| tree | 78b1d81f50521817162d9acd07aeb057c978339d /src/error.cpp | |
| parent | 362aa82f59557743c81d9eb2853e972541ba7690 (diff) | |
| parent | ebfbe4d26031bde4e91ba489102d60fe6959173f (diff) | |
Merge pull request #3494 from Feoramund/fix-3481
Clear unused `global_error_collector.curr_error`
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(); |