mirror of
https://github.com/danog/ir.git
synced 2025-01-22 13:41:11 +01:00
Fixed stack frame corruption
This commit is contained in:
parent
705f0f1e1d
commit
9796a7d9a4
@ -1303,7 +1303,7 @@ static ir_reg ir_vreg_spill_slot(ir_ctx *ctx, ir_ref v)
|
||||
return -offset;
|
||||
} else {
|
||||
ir_backend_data *data = ctx->data;
|
||||
return data->stack_frame_size - sizeof(void*) - offset;
|
||||
return data->stack_frame_size - offset;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1323,7 +1323,7 @@ static ir_reg ir_ref_spill_slot(ir_ctx *ctx, ir_ref ref)
|
||||
return -offset;
|
||||
} else {
|
||||
ir_backend_data *data = ctx->data;
|
||||
return data->stack_frame_size - sizeof(void*) - offset;
|
||||
return data->stack_frame_size - offset;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user