mirror of
https://github.com/ziglang/zig.git
synced 2026-02-08 07:27:18 +00:00
std.Target: Fix C type alignment calculation for spirv32.
This commit is contained in:
parent
e67388c2e5
commit
29321ca4a2
@ -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…
x
Reference in New Issue
Block a user