aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/type.zig b/src/type.zig
index a706ad34bc..31f84cdec4 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -818,7 +818,8 @@ pub const Type = extern union {
.fn_ccc_void_no_args, // represents machine code; not a pointer
.function, // represents machine code; not a pointer
=> return switch (target.cpu.arch) {
- .arm => 4,
+ .arm, .armeb => 4,
+ .aarch64, .aarch64_32, .aarch64_be => 4,
.riscv64 => 2,
else => 1,
},