feat: pass stmt position information to microwacc
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user