Skip to content

Commit 063d05a

Browse files
committed
Initialize asm outs/ins/clobbers to prevent accessing undefined
1 parent 4e55d67 commit 063d05a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

std/zig/parse.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,9 +1500,9 @@ fn parseAsmExpr(arena: *Allocator, it: *TokenIterator, tree: *Tree) !?*Node {
15001500
.asm_token = asm_token,
15011501
.volatile_token = volatile_token,
15021502
.template = template,
1503-
.outputs = undefined,
1504-
.inputs = undefined,
1505-
.clobbers = undefined,
1503+
.outputs = Node.Asm.OutputList.init(arena),
1504+
.inputs = Node.Asm.InputList.init(arena),
1505+
.clobbers = Node.Asm.ClobberList.init(arena),
15061506
.rparen = undefined,
15071507
};
15081508

0 commit comments

Comments
 (0)