diff options
| author | gingerBill <bill@gingerbill.org> | 2018-06-09 19:53:06 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-06-09 19:53:06 +0100 |
| commit | 268491b224ac07edc50d314c071b19970cf157d0 (patch) | |
| tree | aa123c6f95976d7adecb977b9ca4f8d8924ea56b /src/check_expr.cpp | |
| parent | 49ea9ed7226b68cde2eeea3984d61098df9f22e3 (diff) | |
Use global arena for AstNode allocations
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index f57b7095a..ea9936235 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -3632,7 +3632,7 @@ break; isize variable_count = type->Struct.fields.count; array_init(&tuple->Tuple.variables, a, variable_count); // TODO(bill): Should I copy each of the entities or is this good enough? - gb_memcopy_array(tuple->Tuple.variables.data, type->Struct.fields.data, variable_count); + gb_memmove_array(tuple->Tuple.variables.data, type->Struct.fields.data, variable_count); operand->type = tuple; operand->mode = Addressing_Value; |