diff options
| author | Veikka Tuominen <git@vexu.eu> | 2020-12-26 02:17:36 +0200 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2020-12-26 02:26:53 +0200 |
| commit | 40aad4f47e1ab02a1ff6109f4b6f06af00d1f503 (patch) | |
| tree | 4295d78569af3bbb2a3417bf81dd6fc47be58024 /src/Module.zig | |
| parent | c99c6c0a68bb1c32123a027c274b165b3891e88b (diff) | |
| download | zig-40aad4f47e1ab02a1ff6109f4b6f06af00d1f503.tar.gz zig-40aad4f47e1ab02a1ff6109f4b6f06af00d1f503.zip | |
stage2: break and continue out of loops
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Module.zig b/src/Module.zig index 20cb7bf195..3806c0dea8 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -796,6 +796,10 @@ 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, |
