mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
std.Target: Fix C type alignment calculation for spirv.
This commit is contained in:
parent
1b6b8813cf
commit
bf47cb4379
@ -2400,9 +2400,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
|
||||
.nvptx,
|
||||
.nvptx64,
|
||||
.s390x,
|
||||
.spirv,
|
||||
.spirv32,
|
||||
.spirv64,
|
||||
=> 8,
|
||||
|
||||
.aarch64,
|
||||
@ -2417,6 +2414,9 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
|
||||
.riscv32,
|
||||
.riscv64,
|
||||
.sparc64,
|
||||
.spirv,
|
||||
.spirv32,
|
||||
.spirv64,
|
||||
.x86_64,
|
||||
.ve,
|
||||
.wasm32,
|
||||
@ -2511,9 +2511,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
|
||||
.nvptx,
|
||||
.nvptx64,
|
||||
.s390x,
|
||||
.spirv,
|
||||
.spirv32,
|
||||
.spirv64,
|
||||
=> 8,
|
||||
|
||||
.aarch64,
|
||||
@ -2528,6 +2525,9 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
|
||||
.riscv32,
|
||||
.riscv64,
|
||||
.sparc64,
|
||||
.spirv,
|
||||
.spirv32,
|
||||
.spirv64,
|
||||
.x86_64,
|
||||
.ve,
|
||||
.wasm32,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user