Skip all dbg instructions

This commit is contained in:
ocrap7 2023-10-03 14:11:57 -05:00 committed by Andrew Kelley
parent 9b0da5ccef
commit 1ce12db5c8

View File

@ -7487,7 +7487,7 @@ pub const FuncGen = struct {
for (body_tail[1..]) |body_inst| {
switch (air_tags[@intFromEnum(body_inst)]) {
.ret => return true,
.dbg_block_begin, .dbg_stmt => continue,
.dbg_stmt, .dbg_block_end => continue,
else => return false,
}
}