From f9d50378963d9bf397b90444cc57f9e582d4af96 Mon Sep 17 00:00:00 2001 From: Finn Coffey Date: Sat, 16 Nov 2024 10:12:59 +1100 Subject: [PATCH] Fix errors on arm64 --- source/backends/arm64.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/backends/arm64.d b/source/backends/arm64.d index a36c5f7..e3b3ef5 100644 --- a/source/backends/arm64.d +++ b/source/backends/arm64.d @@ -586,7 +586,7 @@ class BackendARM64 : CompilerBackend { if (node.inline) { if (node.errors) { LoadAddress("x9", "__global_" ~ Sanitise("_cal_exception")); - output ~= "ldr x10, #0\n"; + output ~= "mov x10, #0\n"; output ~= "str x10, [x9]\n"; } @@ -615,7 +615,7 @@ class BackendARM64 : CompilerBackend { if (node.errors) { LoadAddress("x9", "__global_" ~ Sanitise("_cal_exception")); - output ~= "ldr x10, #0\n"; + output ~= "mov x10, #0\n"; output ~= "str x10, [x9]\n"; }