Wasm @breakpoint: emit unreachable

This should improve the developer debugging experience.
This commit is contained in:
r00ster91 2023-03-03 19:59:18 +01:00
parent 65368683ad
commit 4eb3f50fcf

View File

@ -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, &.{});
}