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 0f36fa5 commit 22e3339
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 @@ -1213,7 +1213,7 @@ static Pseudo *indexed_load_from_global(Proc *proc, Pseudo *index_pseudo)
assert(container_pseudo->type != PSEUDO_INDEXED);
assert(key_pseudo->type != PSEUDO_INDEXED);

Pseudo *target = allocate_temp_pseudo(proc, RAVI_TANY, false);
Pseudo *target = allocate_temp_pseudo(proc, RAVI_TANY, true);
Instruction *insn = allocate_instruction(proc, op_loadglobal, index_pseudo->index_info.line_number);

Pseudo *tofree1 = add_instruction_operand(proc, insn, container_pseudo);
Expand Down

0 comments on commit 22e3339

Please sign in to comment.