mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
std.Target: Fix C type alignment calculation for spirv32.
This commit is contained in:
parent
e67388c2e5
commit
29321ca4a2
1 changed files with 2 additions and 2 deletions
|
|
@ -2344,7 +2344,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
|
|||
.x86,
|
||||
.xcore,
|
||||
.loongarch32,
|
||||
.spirv32,
|
||||
.kalimba,
|
||||
.ve,
|
||||
.spu_2,
|
||||
|
|
@ -2366,6 +2365,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
|
|||
.nvptx,
|
||||
.nvptx64,
|
||||
.s390x,
|
||||
.spirv32,
|
||||
.spirv64,
|
||||
=> 8,
|
||||
|
||||
|
|
@ -2449,7 +2449,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
|
|||
.csky,
|
||||
.xcore,
|
||||
.loongarch32,
|
||||
.spirv32,
|
||||
.kalimba,
|
||||
.ve,
|
||||
.spu_2,
|
||||
|
|
@ -2478,6 +2477,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
|
|||
.nvptx,
|
||||
.nvptx64,
|
||||
.s390x,
|
||||
.spirv32,
|
||||
.spirv64,
|
||||
=> 8,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue