C backend: InternPool fixes

This commit is contained in:
Andrew Kelley
2023-05-26 20:21:17 -07:00
parent a596ea683c
commit fc358435cb
2 changed files with 182 additions and 132 deletions

View File

@@ -443,7 +443,8 @@ pub fn generateSymbol(
},
.anon_struct_type => |tuple| {
const struct_begin = code.items.len;
for (tuple.types, 0..) |field_ty, index| {
for (tuple.types, tuple.values, 0..) |field_ty, comptime_val, index| {
if (comptime_val != .none) continue;
if (!field_ty.toType().hasRuntimeBits(mod)) continue;
const field_val = switch (aggregate.storage) {