aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2020-12-26 12:26:16 +0200
committerGitHub <noreply@github.com>2020-12-26 12:26:16 +0200
commit641bf4c46eb2d5c1f3e95898ed74848a56e0d999 (patch)
tree4604af2e79732db38955e44df5accc2c29c7e7de /src/Module.zig
parentd20174ad881ab98291c4d1733ca8ec92811abbdc (diff)
parenta50759325c95ad7dfd1fbf029759cf0a2608b3ab (diff)
downloadzig-641bf4c46eb2d5c1f3e95898ed74848a56e0d999.tar.gz
zig-641bf4c46eb2d5c1f3e95898ed74848a56e0d999.zip
Merge pull request #7552 from Vexu/stage2-continue
stage2 continue
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,
};
};