| ... | @@ -510,13 +510,18 @@ pub const Type = extern union { | ... | @@ -510,13 +510,18 @@ pub const Type = extern union { |
| 510 | .u8, | 510 | .u8, |
| 511 | .i8, | 511 | .i8, |
| 512 | .bool, | 512 | .bool, |
| | 513 | .array_u8_sentinel_0, |
| | 514 | => return 1, |
| | 515 | |
| 513 | .fn_noreturn_no_args, // represents machine code; not a pointer | 516 | .fn_noreturn_no_args, // represents machine code; not a pointer |
| 514 | .fn_void_no_args, // represents machine code; not a pointer | 517 | .fn_void_no_args, // represents machine code; not a pointer |
| 515 | .fn_naked_noreturn_no_args, // represents machine code; not a pointer | 518 | .fn_naked_noreturn_no_args, // represents machine code; not a pointer |
| 516 | .fn_ccc_void_no_args, // represents machine code; not a pointer | 519 | .fn_ccc_void_no_args, // represents machine code; not a pointer |
| 517 | .function, // represents machine code; not a pointer | 520 | .function, // represents machine code; not a pointer |
| 518 | .array_u8_sentinel_0, | 521 | => return switch (target.cpu.arch) { |
| 519 | => return 1, | 522 | .riscv64 => 2, |
| | 523 | else => 1, |
| | 524 | }, |
| 520 | | 525 | |
| 521 | .i16, .u16 => return 2, | 526 | .i16, .u16 => return 2, |
| 522 | .i32, .u32 => return 4, | 527 | .i32, .u32 => return 4, |