Correct arena_temp_end usage when no allocation ever happens for that arena

This commit is contained in:
gingerBill
2023-01-28 12:06:46 +00:00
parent 94edf89b20
commit c45ca1bfcc
6 changed files with 623 additions and 534 deletions

View File

@@ -1050,7 +1050,6 @@ gb_internal bool has_asm_extension(String const &path) {
// temporary
gb_internal char *token_pos_to_string(TokenPos const &pos) {
TEMPORARY_ALLOCATOR_GUARD();
gbString s = gb_string_make_reserve(temporary_allocator(), 128);
String file = get_file_path_string(pos.file_id);
switch (build_context.ODIN_ERROR_POS_STYLE) {