From c020a302960c499ffe811dd0601a2d386c191b91 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 14 Jul 2021 21:57:40 -0700 Subject: 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. --- src/Module.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Module.zig') diff --git a/src/Module.zig b/src/Module.zig index 4bd48dad05..94d8b63744 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -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`. -- cgit v1.2.3