std.Target: Fix loongarch32 handling in C type alignment calculation.

This commit is contained in:
Alex Rønne Petersen 2024-10-16 01:05:57 +02:00
parent dd983e12aa
commit 1cdb143af2
No known key found for this signature in database

View File

@ -2704,7 +2704,6 @@ pub fn cTypeAlignment(target: Target, c_type: CType) u16 {
.csky,
.x86,
.xcore,
.loongarch32,
.kalimba,
.spu_2,
.xtensa,
@ -2728,6 +2727,7 @@ pub fn cTypeAlignment(target: Target, c_type: CType) u16 {
.aarch64,
.aarch64_be,
.loongarch32,
.loongarch64,
.mips64,
.mips64el,
@ -2808,7 +2808,6 @@ pub fn cTypePreferredAlignment(target: Target, c_type: CType) u16 {
.csky,
.xcore,
.loongarch32,
.kalimba,
.spu_2,
.xtensa,
@ -2838,6 +2837,7 @@ pub fn cTypePreferredAlignment(target: Target, c_type: CType) u16 {
.aarch64,
.aarch64_be,
.loongarch32,
.loongarch64,
.mips64,
.mips64el,