authorgravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2023-03-03 19:59:18+01:00
committergravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2023-03-04 12:08:23+01:00
log4eb3f50fcf6fcfb6b8013571be00b9eeeb909833
tree89801ed5e397da8761e23de62cd74714bcfbbda3
parent65368683ad92b858d0a391cb29d37c0476784b40

Wasm @breakpoint: emit unreachable

This should improve the developer debugging experience.

1 files changed, 1 insertions(+), 0 deletions(-)

src/arch/wasm/CodeGen.zig+1
...@@ -3298,6 +3298,7 @@ fn airTrap(func: *CodeGen, inst: Air.Inst.Index) InnerError!void {...@@ -3298,6 +3298,7 @@ fn airTrap(func: *CodeGen, inst: Air.Inst.Index) InnerError!void {
3298fn airBreakpoint(func: *CodeGen, inst: Air.Inst.Index) InnerError!void {3298fn airBreakpoint(func: *CodeGen, inst: Air.Inst.Index) InnerError!void {
3299 // unsupported by wasm itfunc. Can be implemented once we support DWARF3299 // unsupported by wasm itfunc. Can be implemented once we support DWARF
3300 // for wasm3300 // for wasm
3301 try func.addTag(.@"unreachable");
3301 func.finishAir(inst, .none, &.{});3302 func.finishAir(inst, .none, &.{});
3302}3303}
33033304