mirror of
https://github.com/frida/tinycc
synced 2025-01-16 08:19:31 +03:00
Probably wrong stack alignment for struct on Win64
This commit is contained in:
parent
1f6781f0ee
commit
9d347f8742
@ -614,7 +614,7 @@ void gfunc_call(int nb_args)
|
|||||||
if (bt == VT_STRUCT) {
|
if (bt == VT_STRUCT) {
|
||||||
size = type_size(&sv->type, &align);
|
size = type_size(&sv->type, &align);
|
||||||
/* align to stack align size */
|
/* align to stack align size */
|
||||||
size = (size + 15) & ~16;
|
size = (size + 15) & ~15;
|
||||||
/* generate structure store */
|
/* generate structure store */
|
||||||
r = get_reg(RC_INT);
|
r = get_reg(RC_INT);
|
||||||
gen_offs_sp(0x8d, r, args_size);
|
gen_offs_sp(0x8d, r, args_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user