Compare commits

..

1 Commits

Author SHA1 Message Date
David Mak c9ef09cc48 core: Fix restoration of stack address
All allocas for temporary objects are now placed in the beginning of the
function. Allocas for on-temporary objects are not modified because
these variables may appear in a loop and thus must be uniquely
represented.
2023-10-06 11:21:55 +08:00
1 changed files with 3 additions and 2 deletions

View File

@ -51,8 +51,9 @@ def patch(module):
def output_float(x):
print("%f" % x)
def dbg_stack_address(_):
return 0
def dbg_stack_address(x):
i = 0
return uint64(id(i))
def extern(fun):
name = fun.__name__