aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 897294069f..5a4a76150c 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -796,11 +796,15 @@ pub const Scope = struct {
/// The first N instructions in a function body ZIR are arg instructions.
instructions: std.ArrayListUnmanaged(*zir.Inst) = .{},
label: ?Label = null,
+ break_block: ?*zir.Inst.Block = null,
+ continue_block: ?*zir.Inst.Block = null,
+ /// only valid if label != null or (continue_block and break_block) != null
+ break_result_loc: astgen.ResultLoc = undefined,
pub const Label = struct {
token: ast.TokenIndex,
block_inst: *zir.Inst.Block,
- result_loc: astgen.ResultLoc,
+ used: bool = false,
};
};