LLVM: fix x86 and x86_64 datalayout string calculation

now it matches clang again
This commit is contained in:
Andrew Kelley
2024-05-01 17:57:01 -07:00
parent 708894cf99
commit 88ada2121f

View File

@@ -671,6 +671,20 @@ const DataLayoutBuilder = struct {
abi = size;
force_abi = size == 64;
},
.x86 => switch (size) {
128 => {
abi = size;
pref = size;
},
else => {},
},
.x86_64 => switch (size) {
64, 128 => {
abi = size;
pref = size;
},
else => {},
},
else => {},
}
},