zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 4eb3f50fcf6fcfb6b8013571be00b9eeeb909833 (tree)
parent 65368683ad92b858d0a391cb29d37c0476784b40
Author: r00ster91 <r00ster91@proton.me>
Date:   Fri,  3 Mar 2023 19:59:18 +0100

Wasm @breakpoint: emit unreachable

This should improve the developer debugging experience.

Diffstat:
Msrc/arch/wasm/CodeGen.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig @@ -3298,6 +3298,7 @@ fn airTrap(func: *CodeGen, inst: Air.Inst.Index) InnerError!void { fn airBreakpoint(func: *CodeGen, inst: Air.Inst.Index) InnerError!void { // unsupported by wasm itfunc. Can be implemented once we support DWARF // for wasm + try func.addTag(.@"unreachable"); func.finishAir(inst, .none, &.{}); }