| ... | ... | @@ -1205,7 +1205,7 @@ pub const DeclGen = struct { |
| 1205 | 1205 | try dg.renderValue(writer, Type.bool, is_null_val, initializer_type); |
| 1206 | 1206 | try writer.writeAll(" }"); |
| 1207 | 1207 | }, |
| 1208 | | .aggregate => |aggregate| switch (mod.intern_pool.indexToKey(ty.ip_index)) { |
| 1208 | .aggregate => switch (mod.intern_pool.indexToKey(ty.ip_index)) { |
| 1209 | 1209 | .array_type, .vector_type => { |
| 1210 | 1210 | if (location == .FunctionArgument) { |
| 1211 | 1211 | try writer.writeByte('('); |
| ... | ... | @@ -1278,7 +1278,7 @@ pub const DeclGen = struct { |
| 1278 | 1278 | |
| 1279 | 1279 | if (!empty) try writer.writeByte(','); |
| 1280 | 1280 | |
| 1281 | | const field_val = switch (aggregate.storage) { |
| 1281 | const field_val = switch (mod.intern_pool.indexToKey(val.ip_index).aggregate.storage) { |
| 1282 | 1282 | .bytes => |bytes| try mod.intern_pool.get(mod.gpa, .{ .int = .{ |
| 1283 | 1283 | .ty = field_ty, |
| 1284 | 1284 | .storage = .{ .u64 = bytes[field_i] }, |
| ... | ... | @@ -1309,7 +1309,7 @@ pub const DeclGen = struct { |
| 1309 | 1309 | if (!field.ty.hasRuntimeBitsIgnoreComptime(mod)) continue; |
| 1310 | 1310 | |
| 1311 | 1311 | if (!empty) try writer.writeByte(','); |
| 1312 | | const field_val = switch (aggregate.storage) { |
| 1312 | const field_val = switch (mod.intern_pool.indexToKey(val.ip_index).aggregate.storage) { |
| 1313 | 1313 | .bytes => |bytes| try mod.intern_pool.get(mod.gpa, .{ .int = .{ |
| 1314 | 1314 | .ty = field.ty.toIntern(), |
| 1315 | 1315 | .storage = .{ .u64 = bytes[field_i] }, |
| ... | ... | @@ -1358,7 +1358,7 @@ pub const DeclGen = struct { |
| 1358 | 1358 | if (field.is_comptime) continue; |
| 1359 | 1359 | if (!field.ty.hasRuntimeBitsIgnoreComptime(mod)) continue; |
| 1360 | 1360 | |
| 1361 | | const field_val = switch (aggregate.storage) { |
| 1361 | const field_val = switch (mod.intern_pool.indexToKey(val.ip_index).aggregate.storage) { |
| 1362 | 1362 | .bytes => |bytes| try mod.intern_pool.get(mod.gpa, .{ .int = .{ |
| 1363 | 1363 | .ty = field.ty.toIntern(), |
| 1364 | 1364 | .storage = .{ .u64 = bytes[field_i] }, |
| ... | ... | @@ -1400,7 +1400,7 @@ pub const DeclGen = struct { |
| 1400 | 1400 | try dg.renderType(writer, ty); |
| 1401 | 1401 | try writer.writeByte(')'); |
| 1402 | 1402 | |
| 1403 | | const field_val = switch (aggregate.storage) { |
| 1403 | const field_val = switch (mod.intern_pool.indexToKey(val.ip_index).aggregate.storage) { |
| 1404 | 1404 | .bytes => |bytes| try mod.intern_pool.get(mod.gpa, .{ .int = .{ |
| 1405 | 1405 | .ty = field.ty.toIntern(), |
| 1406 | 1406 | .storage = .{ .u64 = bytes[field_i] }, |