fix: use MemLocation.copy for zeroRest

This commit is contained in:
2025-02-28 16:40:58 +00:00
parent 1a39950a7b
commit e1d90eabf9

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
}