@@ -2807,14 +2807,6 @@ fn nodeIsBlock(tag: Ast.Node.Tag) bool {
|
||||
.block_semicolon,
|
||||
.block_two,
|
||||
.block_two_semicolon,
|
||||
.struct_init_dot,
|
||||
.struct_init_dot_comma,
|
||||
.struct_init_dot_two,
|
||||
.struct_init_dot_two_comma,
|
||||
.array_init_dot,
|
||||
.array_init_dot_comma,
|
||||
.array_init_dot_two,
|
||||
.array_init_dot_two_comma,
|
||||
=> true,
|
||||
else => false,
|
||||
};
|
||||
|
||||
@@ -1730,7 +1730,8 @@ fn structInitExprRlNone(
|
||||
.container_type = ty_inst,
|
||||
.name_start = str_index,
|
||||
}) } }
|
||||
else .{ .rl = .none };
|
||||
else
|
||||
.{ .rl = .none };
|
||||
setExtra(astgen, extra_index, Zir.Inst.StructInitAnon.Item{
|
||||
.field_name = str_index,
|
||||
.init = try expr(gz, scope, sub_ri, field_init),
|
||||
|
||||
@@ -2273,7 +2273,9 @@ pub const Object = struct {
|
||||
|
||||
const full_di_fields: [2]*llvm.DIType =
|
||||
if (layout.tag_align >= layout.payload_align)
|
||||
.{ tag_di, payload_di } else .{ payload_di, tag_di };
|
||||
.{ tag_di, payload_di }
|
||||
else
|
||||
.{ payload_di, tag_di };
|
||||
|
||||
const full_di_ty = dib.createStructType(
|
||||
compile_unit_scope,
|
||||
|
||||
Reference in New Issue
Block a user