translate-c: fix regression on array initialization
parent
32c27daae4
commit
f67b8c68a0
|
@ -2235,6 +2235,7 @@ fn transInitListExprArray(
|
|||
}
|
||||
|
||||
const ty_node = try transCreateNodeArrayType(rp, loc, ZigClangQualType_getTypePtr(child_qt), 1);
|
||||
_ = try appendToken(rp.c, .LBrace, "{");
|
||||
const filler_init_node = try ast.Node.ArrayInitializer.alloc(rp.c.arena, 1);
|
||||
filler_init_node.* = .{
|
||||
.lhs = ty_node,
|
||||
|
|
Loading…
Reference in New Issue