Commit 3da6a19011

Andrew Kelley <andrew@ziglang.org>
2025-09-04 03:22:14
x86 codegen: handle spilled tuples
1 parent 3798561
Changed files (1)
src
arch
src/arch/x86_64/CodeGen.zig
@@ -187027,6 +187027,10 @@ const Temp = struct {
                         else => .u64,
                     };
                 },
+                .tuple_type => |tuple_type| {
+                    assert(tuple_type.types.len == src_regs.len);
+                    break :part_ty .fromInterned(tuple_type.types.get(ip)[part_index]);
+                },
             };
             const part_size: u31 = @intCast(part_ty.abiSize(zcu));
             const src_rc = src_reg.class();