refactor: merge MemLocation with IndexedAddress #37

Merged
gk1623 merged 7 commits from single-memlocation into master 2025-02-28 18:44:49 +00:00
5 changed files with 62 additions and 40 deletions
Showing only changes of commit e1d90eabf9 - Show all commits

View File

@@ -381,7 +381,7 @@ object asmGenerator {
stack.size == stackSizeStart + 1,
"Sanity check: ONLY the evaluated expression should have been pushed onto the stack"
)
asm ++= zeroRest(MemLocation(base = stack.head.base, opSize = Some(Q64)), expr.ty.size)
asm ++= zeroRest(stack.head.copy(opSize = Some(Q64)), expr.ty.size)
asm
}