| ... | @@ -6661,6 +6661,9 @@ fn memset(cg: *CodeGen, elem_ty: Type, ptr: WValue, len: WValue, value: WValue) | ... | @@ -6661,6 +6661,9 @@ fn memset(cg: *CodeGen, elem_ty: Type, ptr: WValue, len: WValue, value: WValue) |
| 6661 | | 6661 | |
| 6662 | try cg.emitWValue(ptr); | 6662 | try cg.emitWValue(ptr); |
| 6663 | try cg.emitWValue(value); | 6663 | try cg.emitWValue(value); |
| | 6664 | if (isByRef(elem_ty, zcu, cg.target)) { |
| | 6665 | _ = try cg.load(.stack, .u8, .{}); |
| | 6666 | } |
| 6664 | try cg.emitWValue(len); | 6667 | try cg.emitWValue(len); |
| 6665 | try cg.addExtended(.memory_fill); | 6668 | try cg.addExtended(.memory_fill); |
| 6666 | | 6669 | |