Skip to content

Commit 811db57

Browse files
committed
translate-c: support goto: syntax change
1 parent a1b1289 commit 811db57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/translate_c.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7094,7 +7094,7 @@ const GotoContext = struct {
70947094
variable: []const u8,
70957095
inner_stmt: *const clang.Stmt,
70967096
type: union(enum) {
7097-
simple: void,
7097+
simple,
70987098

70997099
break_target: struct {
71007100
/// zig-label for the `from` statement (initialized late)
@@ -7522,7 +7522,7 @@ fn createGotoContextCombineStmts(
75227522
try branch_transformations.value_ptr.append(c.arena, GotoContext.Transformation{
75237523
.variable = variable.value_ptr.*,
75247524
.inner_stmt = label_branch.items[i],
7525-
.type = .{ .simple = {} },
7525+
.type = .simple,
75267526
});
75277527
}
75287528

0 commit comments

Comments
 (0)