fix inline fn args not removed from stack
This commit is contained in:
parent
b74a526b2f
commit
843ba8b034
1 changed files with 4 additions and 4 deletions
|
@ -30,10 +30,10 @@ let rec compile_expr env = function
|
||||||
args
|
args
|
||||||
in
|
in
|
||||||
List.flatten ca
|
List.flatten ca
|
||||||
@
|
@ (if Env.mem f Baselib.builtins
|
||||||
if Env.mem f Baselib.builtins
|
|
||||||
then Env.find f Baselib.builtins
|
then Env.find f Baselib.builtins
|
||||||
else [ Jal (puf ^ f); Addi (SP, SP, 4 * List.length args) ]
|
else [ Jal (puf ^ f) ])
|
||||||
|
@ [ Addi (SP, SP, 4 * List.length args) ]
|
||||||
;;
|
;;
|
||||||
|
|
||||||
let rec compile_instr info = function
|
let rec compile_instr info = function
|
||||||
|
|
Reference in a new issue