mirror of
https://github.com/ziglang/zig.git
synced 2026-02-04 21:53:38 +00:00
Wasm @breakpoint: emit unreachable
This should improve the developer debugging experience.
This commit is contained in:
parent
65368683ad
commit
4eb3f50fcf
@ -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, &.{});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user