aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-07-14 21:57:40 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-07-20 12:19:16 -0700
commitc020a302960c499ffe811dd0601a2d386c191b91 (patch)
treecdcc37a5a2efc0ade7be07c8c014d1f82f8d547b /src/Module.zig
parent27be4f31402557972ae28d552f4ec4617357d454 (diff)
downloadzig-c020a302960c499ffe811dd0601a2d386c191b91.tar.gz
zig-c020a302960c499ffe811dd0601a2d386c191b91.zip
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.
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig2
1 files changed, 1 insertions, 1 deletions
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`.