From 64514d9bf4268b523892fcf50c93facfbab592c7 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Wed, 25 Mar 2026 19:22:52 +0300 Subject: [PATCH] Fix storing <8 byte sized objects on stack --- libs/jit/source/arch/aarch64/compiler_v2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/jit/source/arch/aarch64/compiler_v2.cpp b/libs/jit/source/arch/aarch64/compiler_v2.cpp index 69ceefb..a52e1ad 100644 --- a/libs/jit/source/arch/aarch64/compiler_v2.cpp +++ b/libs/jit/source/arch/aarch64/compiler_v2.cpp @@ -258,6 +258,9 @@ namespace pslang::jit::aarch64 else throw std::runtime_error(std::format("Unsupported load size: {}", size)); + if (types::is_bool_type(*type) || types::is_integer_type(*type)) + extend(0, type); + store(it, 0); }