From 4b051a0d3b9da924924ed2a28ef7c102902a880c Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Fri, 7 Jul 2017 23:42:43 +0100 Subject: `..` half closed range; `...` open range; `...` variadic syntax --- src/check_decl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/check_decl.cpp') diff --git a/src/check_decl.cpp b/src/check_decl.cpp index b6e2acb26..ea457fcf3 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -79,6 +79,7 @@ void check_init_variables(Checker *c, Entity **lhs, isize lhs_count, Arraytmp_arena); + defer (gb_temp_arena_memory_end(tmp)); // NOTE(bill): If there is a bad syntax error, rhs > lhs which would mean there would need to be // an extra allocation @@ -100,9 +101,6 @@ void check_init_variables(Checker *c, Entity **lhs, isize lhs_count, Array 0 && lhs_count != rhs_count) { error(lhs[0]->token, "Assignment count mismatch `%td` = `%td`", lhs_count, rhs_count); } - - - gb_temp_arena_memory_end(tmp); } void check_init_constant(Checker *c, Entity *e, Operand *operand) { -- cgit v1.2.3