mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 11:20:08 +00:00
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.
This commit is contained in:
@@ -403,6 +403,8 @@ gb_internal void error_va(TokenPos const &pos, TokenPos end, char const *fmt, va
|
|||||||
error_out("\n");
|
error_out("\n");
|
||||||
show_error_on_line(pos, end);
|
show_error_on_line(pos, end);
|
||||||
} else {
|
} else {
|
||||||
|
global_error_collector.curr_error_value = {};
|
||||||
|
global_error_collector.curr_error_value_set.store(false);
|
||||||
global_error_collector.count.fetch_sub(1);
|
global_error_collector.count.fetch_sub(1);
|
||||||
}
|
}
|
||||||
try_pop_error_value();
|
try_pop_error_value();
|
||||||
|
|||||||
Reference in New Issue
Block a user