authorgravatar for rb.lymn@gmail.comRobbie Lyman <rb.lymn@gmail.com> 2026-08-28 20:15:22-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-10-09 23:13:33+02:00
logd69634c10d2e4ca4af834a0644136ac1af72cd26
tree42aaaecbdaef93ad754ceeb1a0eb97f11681d1f7
parentf2084ab74a8279db4a4607d97d49d27b0acda4db

chore(MultiArrayList): update .{} to .empty

This change brings initiailization of MultiArrayList within the compiler and the standard library in line with other std containers in preferring the `.empty` decl literal over `.{}` initialization.

24 files changed, 67 insertions(+), 67 deletions(-)

lib/compiler/Maker/Watch.zig+10-10
......@@ -110,12 +110,12 @@ const Os = switch (builtin.os.tag) {
110110
111111 fn init(maker: *Maker) !Watch {
112112 return .{
113 .dir_table = .{},
113 .dir_table = .empty,
114114 .dir_count = 0,
115115 .os = switch (builtin.os.tag) {
116116 .linux => .{
117 .handle_table = .{},
118 .poll_fds = .{},
117 .handle_table = .empty,
118 .poll_fds = .empty,
119119 },
120120 else => {},
121121 },
......@@ -248,7 +248,7 @@ const Os = switch (builtin.os.tag) {
248248 _ = w.dir_table.pop();
249249 } else {
250250 assert(dh_gop.index == gop.index);
251 dh_gop.value_ptr.* = .{ .mount_id = mount_id, .reaction_set = .{} };
251 dh_gop.value_ptr.* = .{ .mount_id = mount_id, .reaction_set = .empty };
252252 posix.fanotify_mark(fan_fd, .{
253253 .ADD = true,
254254 .ONLYDIR = true,
......@@ -261,7 +261,7 @@ const Os = switch (builtin.os.tag) {
261261 };
262262 for (files.items) |basename| {
263263 const gop = try reaction_set.getOrPut(gpa, basename);
264 if (!gop.found_existing) gop.value_ptr.* = .{};
264 if (!gop.found_existing) gop.value_ptr.* = .empty;
265265 try gop.value_ptr.put(gpa, step_index, w.generation);
266266 }
267267 }
......@@ -488,7 +488,7 @@ const Os = switch (builtin.os.tag) {
488488
489489 fn init(maker: *Maker) !Watch {
490490 return .{
491 .dir_table = .{},
491 .dir_table = .empty,
492492 .dir_count = 0,
493493 .os = switch (builtin.os.tag) {
494494 .windows => .{
......@@ -610,7 +610,7 @@ const Os = switch (builtin.os.tag) {
610610 };
611611 for (files.items) |basename| {
612612 const gop = try dir.reaction_set.getOrPut(gpa, basename);
613 if (!gop.found_existing) gop.value_ptr.* = .{};
613 if (!gop.found_existing) gop.value_ptr.* = .empty;
614614 try gop.value_ptr.put(gpa, step_index, w.generation);
615615 }
616616 }
......@@ -713,7 +713,7 @@ const Os = switch (builtin.os.tag) {
713713
714714 fn init(maker: *Maker) !Watch {
715715 return .{
716 .dir_table = .{},
716 .dir_table = .empty,
717717 .dir_count = 0,
718718 .os = .{
719719 .kq_fd = try Io.Kqueue.createFileDescriptor(),
......@@ -769,7 +769,7 @@ const Os = switch (builtin.os.tag) {
769769 _ = try Io.Kqueue.kevent(w.os.kq_fd, &changes, &.{}, null);
770770 assert(handles.len == gop.index);
771771 try handles.append(gpa, .{
772 .rs = .{},
772 .rs = .empty,
773773 .dir_fd = if (skip_open_dir) -1 else dir_fd,
774774 });
775775 }
......@@ -778,7 +778,7 @@ const Os = switch (builtin.os.tag) {
778778 };
779779 for (files.items) |basename| {
780780 const gop = try reaction_set.getOrPut(gpa, basename);
781 if (!gop.found_existing) gop.value_ptr.* = .{};
781 if (!gop.found_existing) gop.value_ptr.* = .empty;
782782 try gop.value_ptr.put(gpa, step_index, w.generation);
783783 }
784784 }
lib/compiler/aro/aro/CodeGen.zig+1-1
......@@ -17,7 +17,7 @@ const QualType = @import("TypeStore.zig").QualType;
1717const Value = @import("Value.zig");
1818
1919const WipSwitch = struct {
20 cases: Cases = .{},
20 cases: Cases = .empty,
2121 default: ?Ir.Ref = null,
2222 size: u64,
2323
lib/compiler/aro/aro/Hideset.zig+3-3
......@@ -41,11 +41,11 @@ pub const Index = enum(u32) {
4141 _,
4242};
4343
44map: std.AutoHashMapUnmanaged(Identifier, Index) = .{},
44map: std.AutoHashMapUnmanaged(Identifier, Index) = .empty,
4545/// Used for computing union/intersection of two lists; stored here so that allocations can be retained
4646/// until hideset is deinit'ed
47tmp_map: std.AutoHashMapUnmanaged(Identifier, void) = .{},
48linked_list: Item.List = .{},
47tmp_map: std.AutoHashMapUnmanaged(Identifier, void) = .empty,
48linked_list: Item.List = .empty,
4949comp: *const Compilation,
5050
5151/// Invalidated if the underlying MultiArrayList slice is reallocated due to resize
lib/compiler/aro/backend/Ir.zig+1-1
......@@ -179,7 +179,7 @@ pub const Renderer = struct {
179179 gpa: Allocator,
180180 obj: *Object,
181181 ir: *const Ir,
182 errors: ErrorList = .{},
182 errors: ErrorList = .empty,
183183
184184 pub const ErrorList = std.StringArrayHashMapUnmanaged([]const u8);
185185
lib/std/array_hash_map.zig+4-4
......@@ -87,7 +87,7 @@ pub fn Custom(
8787 return struct {
8888 /// It is permitted to access this field directly.
8989 /// After any modification to the keys, consider calling `reIndex`.
90 entries: DataList = .{},
90 entries: DataList = .empty,
9191
9292 /// When entries length is less than `linear_scan_max`, this remains `null`.
9393 /// Once entries length grows big enough, this field is allocated. There is
......@@ -100,7 +100,7 @@ pub fn Custom(
100100
101101 /// A map containing no keys or values.
102102 pub const empty: Self = .{
103 .entries = .{},
103 .entries = .empty,
104104 .index_header = null,
105105 };
106106
......@@ -165,7 +165,7 @@ pub fn Custom(
165165 const Oom = Allocator.Error;
166166
167167 pub fn init(gpa: Allocator, key_list: []const K, value_list: []const V) Oom!Self {
168 var self: Self = .{};
168 var self: Self = .empty;
169169 errdefer self.deinit(gpa);
170170 try self.reinit(gpa, key_list, value_list);
171171 return self;
......@@ -836,7 +836,7 @@ pub fn Custom(
836836 return self.cloneContext(gpa, undefined);
837837 }
838838 pub fn cloneContext(self: Self, gpa: Allocator, ctx: Context) Oom!Self {
839 var other: Self = .{};
839 var other: Self = .empty;
840840 other.entries = try self.entries.clone(gpa);
841841 errdefer other.entries.deinit(gpa);
842842
lib/std/multi_array_list.zig+2-2
......@@ -227,7 +227,7 @@ pub fn MultiArrayList(comptime T: type) type {
227227 /// The caller owns the returned memory. Empties this MultiArrayList.
228228 pub fn toOwnedSlice(self: *Self) Slice {
229229 const result = self.slice();
230 self.* = .{};
230 self.* = .empty;
231231 return result;
232232 }
233233
......@@ -496,7 +496,7 @@ pub fn MultiArrayList(comptime T: type) type {
496496
497497 pub fn clearAndFree(self: *Self, gpa: Allocator) void {
498498 gpa.free(self.allocatedBytes());
499 self.* = .{};
499 self.* = .empty;
500500 }
501501
502502 /// Reduce length to `new_len`.
lib/std/zig/AstGen.zig+1-1
......@@ -21,7 +21,7 @@ tree: *const Ast,
2121/// The set of nodes which, given the choice, must expose a result pointer to
2222/// sub-expressions. See `AstRlAnnotate` for details.
2323nodes_need_rl: *const AstRlAnnotate.RlNeededSet,
24instructions: std.MultiArrayList(Zir.Inst) = .{},
24instructions: std.MultiArrayList(Zir.Inst) = .empty,
2525extra: ArrayList(u32) = .empty,
2626string_bytes: ArrayList(u8) = .empty,
2727/// Tracks the current byte offset within the source file.
lib/std/zig/llvm/Builder.zig+2-2
......@@ -1429,7 +1429,7 @@ pub const Type = enum(u32) {
14291429 }
14301430
14311431 pub fn isSized(self: Type, builder: *const Builder) Allocator.Error!bool {
1432 var visited: IsSizedVisited = .{};
1432 var visited: IsSizedVisited = .empty;
14331433 defer visited.deinit(builder.gpa);
14341434 const result = try self.isSizedVisited(&visited, builder);
14351435 return result;
......@@ -14710,7 +14710,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator, producer: Producer) bitco
1471014710 var attributes_set: std.array_hash_map.Auto(struct {
1471114711 attributes: Attributes,
1471214712 index: u32,
14713 }, void) = .{};
14713 }, void) = .empty;
1471414714 defer attributes_set.deinit(self.gpa);
1471514715
1471614716 // PARAMATTR_GROUP_BLOCK
src/Sema.zig+10-10
......@@ -44,7 +44,7 @@ gpa: Allocator,
4444/// This arena will be cleared when the sema is destroyed.
4545arena: Allocator,
4646code: Zir,
47air_instructions: std.MultiArrayList(Air.Inst) = .{},
47air_instructions: std.MultiArrayList(Air.Inst) = .empty,
4848air_extra: std.ArrayList(u32) = .empty,
4949/// Maps ZIR to AIR.
5050inst_map: InstMap = .{},
......@@ -161,7 +161,7 @@ const MaybeComptimeAlloc = struct {
161161 stores: std.MultiArrayList(struct {
162162 inst: Air.Inst.Index,
163163 src: LazySrcLoc,
164 }) = .{},
164 }) = .empty,
165165};
166166
167167const ComptimeAlloc = struct {
......@@ -214,7 +214,7 @@ pub const InferredErrorSet = struct {
214214 /// All currently known errors that this error set contains. This includes
215215 /// direct additions via `return error.Foo;`, and possibly also errors that
216216 /// are returned from any dependent functions.
217 errors: NameMap = .{},
217 errors: NameMap = .empty,
218218 /// Other inferred error sets which this inferred error set should include.
219219 inferred_error_sets: std.array_hash_map.Auto(InternPool.Index, void) = .empty,
220220 /// The regular error set created by resolving this inferred error set.
......@@ -363,7 +363,7 @@ pub const Block = struct {
363363 /// function type.
364364 /// This memory is allocated by a parent `Sema` in the temporary arena, and is
365365 /// used to add a `func_instance` into the `InternPool`.
366 params: std.MultiArrayList(Param) = .{},
366 params: std.MultiArrayList(Param) = .empty,
367367
368368 label: ?*Label = null,
369369 inlining: ?*Inlining,
......@@ -3038,7 +3038,7 @@ fn zirErrorSetDecl(
30383038 const inst_data = sema.code.instructions.items(.data)[@backingInt(inst)].pl_node;
30393039 const extra = sema.code.extraData(Zir.Inst.ErrorSetDecl, inst_data.payload_index);
30403040
3041 var names: InferredErrorSet.NameMap = .{};
3041 var names: InferredErrorSet.NameMap = .empty;
30423042 try names.ensureUnusedCapacity(sema.arena, extra.data.fields_len);
30433043
30443044 var extra_index: u32 = @intCast(extra.end);
......@@ -8440,7 +8440,7 @@ fn resolveGenericBody(
84408440
84418441 // Make sure any nested param instructions don't clobber our work.
84428442 const prev_params = block.params;
8443 block.params = .{};
8443 block.params = .empty;
84448444 defer {
84458445 block.params = prev_params;
84468446 }
......@@ -9108,7 +9108,7 @@ fn zirParam(
91089108 const param_ty: Type = if (extra.data.type.is_generic) .generic_poison else ty: {
91099109 // Make sure any nested param instructions don't clobber our work.
91109110 const prev_params = block.params;
9111 block.params = .{};
9111 block.params = .empty;
91129112 defer {
91139113 block.params = prev_params;
91149114 }
......@@ -11542,7 +11542,7 @@ fn validateSwitchBlock(
1154211542 );
1154311543 }
1154411544
11545 var names: InferredErrorSet.NameMap = .{};
11545 var names: InferredErrorSet.NameMap = .empty;
1154611546 try names.ensureUnusedCapacity(sema.arena, error_names.len);
1154711547 for (error_names.get(ip)) |error_name| {
1154811548 if (seen.errors.contains(error_name)) continue;
......@@ -12177,7 +12177,7 @@ fn analyzeSwitchCaptures(
1217712177 break :payload_ref try sema.errorCastUnchecked(case_block, capture_err_ty, loaded_operand);
1217812178 },
1217912179 .item_refs => |item_refs| {
12180 var names: InferredErrorSet.NameMap = .{};
12180 var names: InferredErrorSet.NameMap = .empty;
1218112181 try names.ensureUnusedCapacity(sema.arena, item_refs.len);
1218212182 for (item_refs) |item_ref| {
1218312183 const item_val = sema.resolveValue(item_ref).?;
......@@ -34511,7 +34511,7 @@ fn errorSetMerge(sema: *Sema, lhs: Type, rhs: Type) !Type {
3451134511 const arena = sema.arena;
3451234512 const lhs_names = lhs.errorSetNames(pt.zcu);
3451334513 const rhs_names = rhs.errorSetNames(pt.zcu);
34514 var names: InferredErrorSet.NameMap = .{};
34514 var names: InferredErrorSet.NameMap = .empty;
3451534515 try names.ensureUnusedCapacity(arena, lhs_names.len);
3451634516
3451734517 for (0..lhs_names.len) |lhs_index| {
src/Zcu.zig+2-2
......@@ -102,7 +102,7 @@ single_exports: std.array_hash_map.Auto(AnalUnit, Export.Index) = .empty,
102102multi_exports: std.array_hash_map.Auto(AnalUnit, extern struct {
103103 index: u32,
104104 len: u32,
105}) = .{},
105}) = .empty,
106106
107107/// Key is the digest returned by `Builtin.hash`; value is the corresponding module.
108108builtin_modules: std.array_hash_map.Auto(Cache.BinDigest, *Module) = .empty,
......@@ -3050,7 +3050,7 @@ pub fn loadZirCache(gpa: Allocator, io: Io, cache_file: Io.File) !Zir {
30503050}
30513051
30523052pub fn loadZirCacheBody(gpa: Allocator, header: Zir.Header, cache_br: *Io.Reader) !Zir {
3053 var instructions: std.MultiArrayList(Zir.Inst) = .{};
3053 var instructions: std.MultiArrayList(Zir.Inst) = .empty;
30543054 errdefer instructions.deinit(gpa);
30553055
30563056 try instructions.setCapacity(gpa, header.instructions_len);
src/Zcu/PerThread.zig+2-2
......@@ -817,7 +817,7 @@ fn updateZirRefs(pt: Zcu.PerThread) (Io.Cancelable || Allocator.Error)!void {
817817 try updated_files.putNoClobber(gpa, file_index, .{
818818 .file = file,
819819 // We intentionally don't map any instructions here; that's the point, the whole file is outdated!
820 .inst_map = .{},
820 .inst_map = .empty,
821821 });
822822 continue;
823823 }
......@@ -837,7 +837,7 @@ fn updateZirRefs(pt: Zcu.PerThread) (Io.Cancelable || Allocator.Error)!void {
837837 assert(!gop.found_existing);
838838 gop.value_ptr.* = .{
839839 .file = file,
840 .inst_map = .{},
840 .inst_map = .empty,
841841 };
842842 try Zcu.mapOldZirToNew(gpa, old_zir, new_zir, &gop.value_ptr.inst_map);
843843 }
src/codegen/llvm/FuncGen.zig+1-1
......@@ -1360,7 +1360,7 @@ fn lowerBlock(
13601360
13611361 const have_block_result = inst_ty.hasRuntimeBits(zcu);
13621362
1363 var breaks: BreakList = if (have_block_result) .{ .list = .{} } else .{ .len = 0 };
1363 var breaks: BreakList = if (have_block_result) .{ .list = .empty } else .{ .len = 0 };
13641364 defer if (have_block_result) breaks.list.deinit(self.gpa);
13651365
13661366 const parent_bb = try self.wip.block(0, "Block");
src/codegen/riscv64/CodeGen.zig+6-6
......@@ -78,7 +78,7 @@ func_index: InternPool.Index,
7878fn_type: Type,
7979arg_index: usize,
8080
81mir_instructions: std.MultiArrayList(Mir.Inst) = .{},
81mir_instructions: std.MultiArrayList(Mir.Inst) = .empty,
8282
8383owner: Owner,
8484
......@@ -112,19 +112,19 @@ vtype: ?bits.VType,
112112blocks: std.AutoHashMapUnmanaged(Air.Inst.Index, BlockData) = .empty,
113113register_manager: RegisterManager = .{},
114114
115const_tracking: ConstTrackingMap = .{},
116inst_tracking: InstTrackingMap = .{},
115const_tracking: ConstTrackingMap = .empty,
116inst_tracking: InstTrackingMap = .empty,
117117
118frame_allocs: std.MultiArrayList(FrameAlloc) = .{},
118frame_allocs: std.MultiArrayList(FrameAlloc) = .empty,
119119free_frame_indices: std.array_hash_map.Auto(FrameIndex, void) = .empty,
120frame_locs: std.MultiArrayList(Mir.FrameLoc) = .{},
120frame_locs: std.MultiArrayList(Mir.FrameLoc) = .empty,
121121
122122loops: std.AutoHashMapUnmanaged(Air.Inst.Index, struct {
123123 /// The state to restore before branching.
124124 state: State,
125125 /// The branch target.
126126 jmp_target: Mir.Inst.Index,
127}) = .{},
127}) = .empty,
128128
129129/// Debug field, used to find bugs in the compiler.
130130air_bookkeeping: @TypeOf(air_bookkeeping_init) = air_bookkeeping_init,
src/codegen/sparc64/CodeGen.zig+2-2
......@@ -66,7 +66,7 @@ arg_index: usize,
6666stack_align: Alignment,
6767
6868/// MIR Instructions
69mir_instructions: std.MultiArrayList(Mir.Inst) = .{},
69mir_instructions: std.MultiArrayList(Mir.Inst) = .empty,
7070/// MIR extra data
7171mir_extra: std.ArrayList(u32) = .empty,
7272
......@@ -1490,7 +1490,7 @@ fn airCondBr(self: *Self, inst: Air.Inst.Index) !void {
14901490
14911491 self.stack.deinit(self.gpa);
14921492 self.stack = parent_stack;
1493 parent_stack = .{};
1493 parent_stack = .empty;
14941494
14951495 self.next_stack_offset = parent_next_stack_offset;
14961496 self.register_manager.free_registers = parent_free_registers;
src/codegen/wasm/CodeGen.zig+1-1
......@@ -144,7 +144,7 @@ values: ValueTable = .empty,
144144blocks: std.array_hash_map.Auto(Air.Inst.Index, struct {
145145 label: u32,
146146 value: WValue,
147}) = .{},
147}) = .empty,
148148/// Maps `loop` instructions to their label. `br` to here repeats the loop.
149149loops: std.AutoHashMapUnmanaged(Air.Inst.Index, u32) = .empty,
150150/// The index of the current argument.
src/link/Elf.zig+2-2
......@@ -22,7 +22,7 @@ ptr_width: PtrWidth,
2222
2323/// A list of all input files.
2424/// First index is a special "null file". Order is otherwise not observed.
25files: std.MultiArrayList(File.Entry) = .{},
25files: std.MultiArrayList(File.Entry) = .empty,
2626/// Long-lived list of all file descriptors.
2727/// We store them globally rather than per actual File so that we can re-use
2828/// one file handle per every object file within an archive.
......@@ -33,7 +33,7 @@ objects: std.ArrayList(File.Index) = .empty,
3333shared_objects: std.array_hash_map.String(File.Index) = .empty,
3434
3535/// List of all output sections and their associated metadata.
36sections: std.MultiArrayList(Section) = .{},
36sections: std.MultiArrayList(Section) = .empty,
3737/// File offset into the shdr table.
3838shdr_table_offset: ?u64 = null,
3939
src/link/Elf/ZigObject.zig+5-5
......@@ -8,7 +8,7 @@ data: std.ArrayList(u8) = .empty,
88basename: []const u8,
99index: File.Index,
1010
11symtab: std.MultiArrayList(ElfSym) = .{},
11symtab: std.MultiArrayList(ElfSym) = .empty,
1212strtab: StringTable = .{},
1313symbols: std.ArrayList(Symbol) = .empty,
1414symbols_extra: std.ArrayList(u32) = .empty,
......@@ -30,16 +30,16 @@ output_ar_state: Archive.ArState = .{},
3030dwarf: ?Dwarf = null,
3131
3232/// Table of tracked LazySymbols.
33lazy_syms: LazySymbolTable = .{},
33lazy_syms: LazySymbolTable = .empty,
3434
3535/// Table of tracked `Nav`s.
36navs: NavTable = .{},
36navs: NavTable = .empty,
3737
3838/// TLS variables indexed by Atom.Index.
39tls_variables: TlsTable = .{},
39tls_variables: TlsTable = .empty,
4040
4141/// Table of tracked `Uav`s.
42uavs: UavTable = .{},
42uavs: UavTable = .empty,
4343
4444debug_info_section_dirty: bool = false,
4545debug_abbrev_section_dirty: bool = false,
src/link/MachO.zig+2-2
......@@ -14,7 +14,7 @@ d_sym: ?DebugSymbols = null,
1414/// A list of all input files.
1515/// Index of each input file also encodes the priority or precedence of one input file
1616/// over another.
17files: std.MultiArrayList(File.Entry) = .{},
17files: std.MultiArrayList(File.Entry) = .empty,
1818/// Long-lived list of all file descriptors.
1919/// We store them globally rather than per actual File so that we can re-use
2020/// one file handle per every object file within an archive.
......@@ -25,7 +25,7 @@ objects: std.ArrayList(File.Index) = .empty,
2525dylibs: std.ArrayList(File.Index) = .empty,
2626
2727segments: std.ArrayList(macho.segment_command_64) = .empty,
28sections: std.MultiArrayList(Section) = .{},
28sections: std.MultiArrayList(Section) = .empty,
2929/// Populated by `allocateSections`.
3030header_size: ?u32 = null,
3131
src/link/MachO/Dylib.zig+1-1
......@@ -5,7 +5,7 @@ index: File.Index,
55file_handle: File.HandleIndex,
66tag: enum { dylib, tbd },
77
8exports: std.MultiArrayList(Export) = .{},
8exports: std.MultiArrayList(Export) = .empty,
99strtab: std.ArrayList(u8) = .empty,
1010id: ?Id = null,
1111ordinal: u16 = 0,
src/link/MachO/InternalObject.zig+1-1
......@@ -1,6 +1,6 @@
11index: File.Index,
22
3sections: std.MultiArrayList(Section) = .{},
3sections: std.MultiArrayList(Section) = .empty,
44atoms: std.ArrayList(Atom) = .empty,
55atoms_indexes: std.ArrayList(Atom.Index) = .empty,
66atoms_extra: std.ArrayList(u32) = .empty,
src/link/MachO/Object.zig+2-2
......@@ -38,8 +38,8 @@ index: File.Index,
3838in_archive: ?InArchive = null,
3939
4040header: ?macho.mach_header_64 = null,
41sections: std.MultiArrayList(Section) = .{},
42symtab: std.MultiArrayList(Nlist) = .{},
41sections: std.MultiArrayList(Section) = .empty,
42symtab: std.MultiArrayList(Nlist) = .empty,
4343strtab: std.ArrayList(u8) = .empty,
4444
4545symbols: std.ArrayList(Symbol) = .empty,
src/link/MachO/ZigObject.zig+4-4
......@@ -17,16 +17,16 @@ atoms_indexes: std.ArrayList(Atom.Index) = .empty,
1717atoms_extra: std.ArrayList(u32) = .empty,
1818
1919/// Table of tracked LazySymbols.
20lazy_syms: LazySymbolTable = .{},
20lazy_syms: LazySymbolTable = .empty,
2121
2222/// Table of tracked Navs.
23navs: NavTable = .{},
23navs: NavTable = .empty,
2424
2525/// Table of tracked Uavs.
26uavs: UavTable = .{},
26uavs: UavTable = .empty,
2727
2828/// TLV initializers indexed by Atom.Index.
29tlv_initializers: TlvInitializerTable = .{},
29tlv_initializers: TlvInitializerTable = .empty,
3030
3131/// A table of relocations.
3232relocs: RelocationTable = .empty,
src/link/MachO/dyld_info/Trie.zig+1-1
......@@ -32,7 +32,7 @@
3232/// The root node of the trie.
3333root: ?Node.Index = null,
3434buffer: std.ArrayList(u8) = .empty,
35nodes: std.MultiArrayList(Node) = .{},
35nodes: std.MultiArrayList(Node) = .empty,
3636edges: std.ArrayList(Edge) = .empty,
3737
3838/// Insert a symbol into the trie, updating the prefixes in the process.
src/link/Spork8.zig+1-1
......@@ -22,7 +22,7 @@ const Value = @import("../Value.zig");
2222
2323base: link.File,
2424/// All MIR instructions for all Zcu functions.
25mir_instructions: std.MultiArrayList(Mir.Inst) = .{},
25mir_instructions: std.MultiArrayList(Mir.Inst) = .empty,
2626/// Corresponds to `mir_instructions`.
2727mir_extra: std.ArrayListUnmanaged(u32) = .empty,
2828/// When the key is an enum type, this represents a `@tagName` function.