Commit 4eb3f50fcf

r00ster91 <r00ster91@proton.me>
2023-03-03 19:59:18
Wasm @breakpoint: emit unreachable
This should improve the developer debugging experience.
1 parent 6536868
Changed files (1)
src
arch
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, &.{});
 }