mirror of
https://github.com/ziglang/zig.git
synced 2024-12-04 02:48:50 +00:00
llvm: Fix natural int width specifications for loongarch in DataLayoutBuilder.
This commit is contained in:
parent
95674fca0c
commit
5e4249eb8b
@ -520,6 +520,7 @@ const DataLayoutBuilder = struct {
|
||||
.arm,
|
||||
.armeb,
|
||||
.csky,
|
||||
.loongarch32,
|
||||
.mips,
|
||||
.mipsel,
|
||||
.powerpc,
|
||||
@ -535,6 +536,7 @@ const DataLayoutBuilder = struct {
|
||||
.amdgcn,
|
||||
.bpfeb,
|
||||
.bpfel,
|
||||
.loongarch64,
|
||||
.mips64,
|
||||
.mips64el,
|
||||
.powerpc64,
|
||||
@ -554,7 +556,6 @@ const DataLayoutBuilder = struct {
|
||||
.nvptx64,
|
||||
=> &.{ 16, 32, 64 },
|
||||
.x86_64 => &.{ 8, 16, 32, 64 },
|
||||
.loongarch64 => &.{64},
|
||||
else => &.{},
|
||||
}), 0..) |natural, index| switch (index) {
|
||||
0 => try writer.print("-n{d}", .{natural}),
|
||||
|
Loading…
Reference in New Issue
Block a user