Fix expand_to_tuple

This commit is contained in:
Ginger Bill
2017-06-27 22:47:19 +01:00
parent 5df854fcef
commit 647e2cafd7
2 changed files with 6 additions and 4 deletions

View File

@@ -4609,7 +4609,7 @@ bool check_builtin_procedure(Checker *c, Operand *operand, AstNode *call, i32 id
tuple->Tuple.variable_count = variable_count;
// TODO(bill): Should I copy each of the entities or is this good enough?
gb_memcopy_array(tuple->Tuple.variables, type->Record.fields, variable_count);
gb_memcopy_array(tuple->Tuple.variables, type->Record.fields_in_src_order, variable_count);
operand->type = tuple;
operand->mode = Addressing_Value;