Skip to content

Commit

Permalink
#245 ensure result is let on top of virtual stack
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed Jun 25, 2022
1 parent d306fc8 commit 5cdec71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ravicomp/src/linearizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ static int linearize_indexed_assign(Proc *proc, Pseudo *table, ravitype_t table_
static Pseudo *linearize_table_constructor(Proc *proc, AstNode *expr)
{
/* constructor -> '{' [ field { sep field } [sep] ] '}' where sep -> ',' | ';' */
Pseudo *target = allocate_temp_pseudo(proc, expr->table_expr.type.type_code, false);
Pseudo *target = allocate_temp_pseudo(proc, expr->table_expr.type.type_code, true);
enum opcode op = op_newtable;
if (expr->table_expr.type.type_code == RAVI_TARRAYINT)
op = op_newiarray;
Expand Down

0 comments on commit 5cdec71

Please sign in to comment.