This commit is contained in:
nub31
2025-01-27 17:03:53 +01:00
parent 39515e4e32
commit cca7ff5b8e

View File

@@ -148,7 +148,7 @@ public class Generator
GenerateBlock(node.Body, func); GenerateBlock(node.Body, func);
_builder.AppendLine($"{func.EndLabel}:"); _builder.AppendLine($"{func.EndLabel}:");
_builder.AppendLine("; Clean up stack frame"); _builder.AppendLine(" ; Clean up stack frame");
_builder.AppendLine(" mov rsp, rbp"); _builder.AppendLine(" mov rsp, rbp");
_builder.AppendLine(" pop rbp"); _builder.AppendLine(" pop rbp");
_builder.AppendLine(" ret"); _builder.AppendLine(" ret");