Implemented environment type
This commit is contained in:
parent
1268344238
commit
96ac298980
15 changed files with 67 additions and 51 deletions
|
@ -22,6 +22,6 @@ func (f *Function) CompileDelete(root *expression.Expression) error {
|
|||
f.SaveRegister(f.CPU.Input[1])
|
||||
f.RegisterRegister(asm.MOVE, f.CPU.Input[0], variable.Register)
|
||||
f.RegisterNumber(asm.MOVE, f.CPU.Input[1], variable.Type.(*types.Pointer).To.Size())
|
||||
f.CallSafe(f.Functions["mem.free"], f.CPU.Input[:2])
|
||||
f.CallSafe(f.All.Functions["mem.free"], f.CPU.Input[:2])
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue