diff options
| author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2022-03-18 08:22:42 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-18 11:40:39 -0700 |
| commit | 3e74acb1390e7b18a1d0febf9540585e165b52bd (patch) | |
| tree | a3659a55985453be2c29708be2de0b22dda245af /src/AstGen.zig | |
| parent | 13321c8070b52afb24f3c1b57eecbb2aa77fc4ec (diff) | |
| download | zig-3e74acb1390e7b18a1d0febf9540585e165b52bd.tar.gz zig-3e74acb1390e7b18a1d0febf9540585e165b52bd.zip | |
AstGen: labeled blocks should always complete with a normal break
They aren't inline blocks by nature of being labeled.
Fixes #11213
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig index 85f2288413..88b2b3544c 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -2018,7 +2018,7 @@ fn labeledBlockExpr( try blockExprStmts(&block_scope, &block_scope.base, statements); if (!block_scope.endsWithNoReturn()) { - _ = try block_scope.addBreak(.break_inline, block_inst, .void_value); + _ = try block_scope.addBreak(.@"break", block_inst, .void_value); } if (!block_scope.label.?.used) { |
