feat: pass stmt position information to microwacc

This commit is contained in:
2025-03-14 14:02:15 +00:00
parent af514b3363
commit 07f02e61d7
4 changed files with 45 additions and 31 deletions

View File

@@ -261,7 +261,7 @@ object asmGenerator {
asm += stack.push(KnownType.String.size, RAX)
case ty =>
asm ++= generateCall(
microWacc.Call(Builtin.Malloc, List(IntLiter(array.heapSize))),
microWacc.Call(Builtin.Malloc, List(IntLiter(array.heapSize)))(array.pos),
isTail = false
)
asm += stack.push(KnownType.Array(?).size, RAX)