Skip to content

Commit

Permalink
more fixes (arm64 doesn't work though)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeti0904 committed Nov 15, 2024
1 parent d7b9015 commit 34cc61d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/backends/arm64.d
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ class BackendARM64 : CompilerBackend {
size_t paramSize = word.params.length * 8;

if (paramSize != 0) {
output ~= format("sub x15, x19, #%d", paramSize);
output ~= format("sub x15, x19, #%d\n", paramSize);
output ~= "str x15, [x20, #-8]!\n";
}
else {
Expand Down
5 changes: 5 additions & 0 deletions source/stackCheck.d
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,12 @@ class StackChecker {
}
}

size_t newLength = stack.length;
stack = oldStack;

foreach (i ; 0 .. newLength) {
stack ~= StackCell(node);
}
}

void EvaluateStruct(StructNode node) {
Expand Down

0 comments on commit 34cc61d

Please sign in to comment.