fix: reserve return pointer and RBP on stack for user func bodies

This commit is contained in:
2025-02-27 16:02:39 +00:00
parent 507cb7dd9b
commit c472c7a62c
3 changed files with 10 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ class Stack {
* @param sizes
* The sizes of the values to reserve space for.
*/
def reserve(sizes: List[Size]): AsmLine = {
def reserve(sizes: Size*): AsmLine = {
sizes.foreach { itemSize =>
stack += stack.size -> StackValue(itemSize, sizeBytes)
}