Compare commits

..

1 Commits

Author SHA1 Message Date
David Mak c7de22287e 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:34:23 +08:00
1 changed files with 2 additions and 3 deletions

View File

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