Skip to content

Commit

Permalink
xglobals: Fix use of __MCF_cxa_dtor_union accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Jan 22, 2024
1 parent 06e8d8d commit 537035d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcfgthread/xglobals.i
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ void
__MCF_invoke_cxa_dtor(__MCF_cxa_dtor_union __dtor, void* __arg)
{
/* Parameters are `EAX`, `EDX`, `ECX`, `ESP[4]`. */
typedef void __dual_dtor_t(int, int, void*, void*) __attribute__((__regparm__(3)));
int __eax, __edx;
__asm__ ("" : "=a"(__eax), "=d"(__edx)); /* uninitialized. */
typedef void __i386_abi_dtor(int, int, void*, void*) __attribute__((__regparm__(3)));
(*(__i386_abi_dtor*)(int) __dtor.__c_ptr) (__eax, __edx, __arg, __arg);
(*(__dual_dtor_t*)(int) __dtor.__cdecl_ptr) (__eax, __edx, __arg, __arg);
}
#else
/* Otherwise, SEH is table-based. */
Expand Down

0 comments on commit 537035d

Please sign in to comment.