Commit 88ada2121f

Andrew Kelley <andrew@ziglang.org>
2024-05-02 02:57:01
LLVM: fix x86 and x86_64 datalayout string calculation
now it matches clang again
1 parent 708894c
Changed files (1)
src
codegen
src/codegen/llvm.zig
@@ -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 => {},
                 }
             },