Skip to content

Commit e9631dc

Browse files
committed
Fix a dubious allocation
1 parent 1c3eb4a commit e9631dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vmir_wasm_parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ wasm_store(ir_unit_t *iu, ir_bb_t *ib, int code, wasm_bytestream_t *wbs)
822822
/* int flags =*/ wbs_get_vu32(wbs);
823823
int offset = wbs_get_vu32(wbs);
824824

825-
ir_instr_store_t *i = instr_add(ib, sizeof(ir_instr_binary_t), IR_IC_STORE);
825+
ir_instr_store_t *i = instr_add(ib, sizeof(ir_instr_store_t), IR_IC_STORE);
826826
i->value = vstack_pop(iu);
827827
i->ptr = vstack_pop(iu);
828828
i->value.type = type;

0 commit comments

Comments
 (0)