diff options
| author | joachimschmidt557 <joachim.schmidt557@outlook.com> | 2020-11-12 16:22:25 +0100 |
|---|---|---|
| committer | joachimschmidt557 <joachim.schmidt557@outlook.com> | 2020-11-12 16:24:51 +0100 |
| commit | c6d46a9b82f04aea439320f0ae8e8a4ed187040e (patch) | |
| tree | f93889134732ac967a30ffc41d6226c68454a30f /src/type.zig | |
| parent | b17859b56863d18ecadb3cf733799a4381e666ac (diff) | |
| download | zig-c6d46a9b82f04aea439320f0ae8e8a4ed187040e.tar.gz zig-c6d46a9b82f04aea439320f0ae8e8a4ed187040e.zip | |
stage2 ARM & AArch64: ensure correct function alignment
Diffstat (limited to 'src/type.zig')
| -rw-r--r-- | src/type.zig | 3 |
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, }, |
