| ... | @@ -4392,7 +4392,7 @@ fn airMemset(func: *CodeGen, inst: Air.Inst.Index) InnerError!void { | ... | @@ -4392,7 +4392,7 @@ fn airMemset(func: *CodeGen, inst: Air.Inst.Index) InnerError!void { |
| 4392 | const value = try func.resolveInst(bin_op.rhs); | 4392 | const value = try func.resolveInst(bin_op.rhs); |
| 4393 | const len = switch (ptr_ty.ptrSize()) { | 4393 | const len = switch (ptr_ty.ptrSize()) { |
| 4394 | .Slice => try func.sliceLen(ptr), | 4394 | .Slice => try func.sliceLen(ptr), |
| 4395 | .One => @as(WValue, .{ .imm64 = ptr_ty.childType().arrayLen() }), | 4395 | .One => @as(WValue, .{ .imm32 = @intCast(u32, ptr_ty.childType().arrayLen()) }), |
| 4396 | .C, .Many => unreachable, | 4396 | .C, .Many => unreachable, |
| 4397 | }; | 4397 | }; |
| 4398 | try func.memset(ptr, len, value); | 4398 | try func.memset(ptr, len, value); |