-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed as not planned
Closed as not planned
Copy link
Labels
arch-wasm32-bit and 64-bit WebAssembly32-bit and 64-bit WebAssemblybackend-llvmThe LLVM backend outputs an LLVM IR Module.The LLVM backend outputs an LLVM IR Module.optimizationupstreamAn issue with a third party project that Zig uses.An issue with a third party project that Zig uses.
Milestone
Description
Lines 10065 to 10071 in aa7d138
// Any WebAssembly runtime will trap when the destination pointer is out-of-bounds, regardless | |
// of the length. This means we need to emit a check where we skip the memset when the length | |
// is 0 as we allow for undefined pointers in 0-sized slices. | |
// This logic can be removed once https://github.com/ziglang/zig/issues/16360 is done. | |
const intrinsic_len0_traps = o.target.isWasm() and | |
ptr_ty.isSlice(zcu) and | |
std.Target.wasm.featureSetHas(o.target.cpu.features, .bulk_memory); |
Metadata
Metadata
Assignees
Labels
arch-wasm32-bit and 64-bit WebAssembly32-bit and 64-bit WebAssemblybackend-llvmThe LLVM backend outputs an LLVM IR Module.The LLVM backend outputs an LLVM IR Module.optimizationupstreamAn issue with a third party project that Zig uses.An issue with a third party project that Zig uses.