llvm: Fix natural int width specifications for loongarch in DataLayoutBuilder.

This commit is contained in:
Alex Rønne Petersen 2024-10-16 01:09:37 +02:00
parent 95674fca0c
commit 5e4249eb8b
No known key found for this signature in database

View File

@ -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}),