fn refIsNoReturn(gz: GenZir, inst_ref: Zir.Inst.Ref) bool
TODO all uses of this should be replaced with uses of endsWithNoReturn.
endsWithNoReturn
gz: GenZir
inst_ref: Zir.Inst.Ref
11368 11369 11370 11371 11372 11373 11374
fn refIsNoReturn(gz: GenZir, inst_ref: Zir.Inst.Ref) bool { if (inst_ref == .unreachable_value) return true; if (inst_ref.toIndex()) |inst_index| { return gz.astgen.instructions.items(.tag)[@backingInt(inst_index)].isNoReturn(); } return false; }
TODO all uses of this should be replaced with uses of
endsWithNoReturn.