mirror of
https://github.com/frida/tinycc
synced 2024-11-28 02:29:38 +03:00
Fix calling ARM EABI functions returning big structures
The wrong type was tested to determine the size of the structure.
This commit is contained in:
parent
8123e334e9
commit
28a5b702f4
@ -749,7 +749,7 @@ void gfunc_call(int nb_args)
|
||||
gv(RC_INT);
|
||||
#ifdef TCC_ARM_EABI
|
||||
if((vtop[-nb_args].type.ref->type.t & VT_BTYPE) == VT_STRUCT
|
||||
&& type_size(&vtop[-nb_args].type, &align) <= 4) {
|
||||
&& type_size(&vtop[-nb_args].type.ref->type, &align) <= 4) {
|
||||
SValue tmp;
|
||||
tmp=vtop[-nb_args];
|
||||
vtop[-nb_args]=vtop[-nb_args+1];
|
||||
|
Loading…
Reference in New Issue
Block a user