Skip to content

Commit 0ff6d9c

Browse files
authored
Merge pull request #31 from soxfox42/arm64-error-fix
Fix errors on arm64
2 parents 1460a16 + f9d5037 commit 0ff6d9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/backends/arm64.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ class BackendARM64 : CompilerBackend {
586586
if (node.inline) {
587587
if (node.errors) {
588588
LoadAddress("x9", "__global_" ~ Sanitise("_cal_exception"));
589-
output ~= "ldr x10, #0\n";
589+
output ~= "mov x10, #0\n";
590590
output ~= "str x10, [x9]\n";
591591
}
592592

@@ -615,7 +615,7 @@ class BackendARM64 : CompilerBackend {
615615

616616
if (node.errors) {
617617
LoadAddress("x9", "__global_" ~ Sanitise("_cal_exception"));
618-
output ~= "ldr x10, #0\n";
618+
output ~= "mov x10, #0\n";
619619
output ~= "str x10, [x9]\n";
620620
}
621621

0 commit comments

Comments
 (0)