| author | |
| committer | |
| log | d20b0a4ad5992a24be45ebe78533691a5848dd5b |
| tree | af38079eb7c9d333d125ec649636187586ca876a |
| parent | c99f5c98c5d69b04444f78666931b93e8f0aab08 |
| signature | Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM |
1 files changed, 3 insertions(+), 0 deletions(-)
src/codegen/wasm/CodeGen.zig+3| ... | ... | @@ -6661,6 +6661,9 @@ fn memset(cg: *CodeGen, elem_ty: Type, ptr: WValue, len: WValue, value: WValue) |
| 6661 | 6661 | |
| 6662 | 6662 | try cg.emitWValue(ptr); |
| 6663 | 6663 | try cg.emitWValue(value); |
| 6664 | if (isByRef(elem_ty, zcu, cg.target)) { | |
| 6665 | _ = try cg.load(.stack, .u8, .{}); | |
| 6666 | } | |
| 6664 | 6667 | try cg.emitWValue(len); |
| 6665 | 6668 | try cg.addExtended(.memory_fill); |
| 6666 | 6669 |