Sema: remove br_block_flat AIR instruction

Thanks to the new AIR memory layout, we can do this by turning a br
operand into a block, rather than having this special purpose
instruction.
This commit is contained in:
Andrew Kelley
2021-07-14 21:57:40 -07:00
parent 27be4f3140
commit c020a30296
5 changed files with 105 additions and 115 deletions

View File

@@ -1185,7 +1185,7 @@ pub const Scope = struct {
block_inst: Air.Inst.Index,
/// Separate array list from break_inst_list so that it can be passed directly
/// to resolvePeerTypes.
results: ArrayListUnmanaged(Air.Inst.Index),
results: ArrayListUnmanaged(Air.Inst.Ref),
/// Keeps track of the break instructions so that the operand can be replaced
/// if we need to add type coercion at the end of block analysis.
/// Same indexes, capacity, length as `results`.