diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-04-28 06:38:32 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-04-28 06:44:28 -0400 |
| commit | ebfbe4d26031bde4e91ba489102d60fe6959173f (patch) | |
| tree | 9913b34fbb02062f5a8f8385b2a7266a8ba81979 /src | |
| parent | e71cf96bbc809c1c1fb7172cd9e3c7c259520625 (diff) | |
Clear unused `global_error_collector.curr_error`
This should cleanly prevent acknowledging duplicate errors on the same
position as seems to be the intent based on the prior `else if`
condition.
Diffstat (limited to 'src')
| -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(); |