fix: do not overwrite RDI in free

This commit is contained in:
2025-02-28 18:47:36 +00:00
parent 9a0d3e38a4
commit 3b723392a7

View File

@@ -134,7 +134,6 @@ object asmGenerator {
Builtin.Free,
Chain(
stackAlign,
Move(RDI, RAX),
Compare(RDI, ImmediateVal(0)),
Jump(labelGenerator.getLabelArg(NullPtrError), Cond.Equal),
assemblyIR.Call(CLibFunc.Free)