Skip to content

Commit 34cc61d

Browse files
committed
more fixes (arm64 doesn't work though)
1 parent d7b9015 commit 34cc61d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

source/backends/arm64.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ class BackendARM64 : CompilerBackend {
487487
size_t paramSize = word.params.length * 8;
488488

489489
if (paramSize != 0) {
490-
output ~= format("sub x15, x19, #%d", paramSize);
490+
output ~= format("sub x15, x19, #%d\n", paramSize);
491491
output ~= "str x15, [x20, #-8]!\n";
492492
}
493493
else {

source/stackCheck.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,12 @@ class StackChecker {
353353
}
354354
}
355355

356+
size_t newLength = stack.length;
356357
stack = oldStack;
358+
359+
foreach (i ; 0 .. newLength) {
360+
stack ~= StackCell(node);
361+
}
357362
}
358363

359364
void EvaluateStruct(StructNode node) {

0 commit comments

Comments
 (0)