stage2: remove legacy Type array and array_sentinel

These are now handled by the InternPool.
This commit is contained in:
Andrew Kelley
2023-05-12 10:59:04 -07:00
parent 466328d1ca
commit d89807efbb
4 changed files with 32 additions and 247 deletions

View File

@@ -6543,9 +6543,10 @@ pub fn populateTestFunctions(
const test_fn_vals = try arena.alloc(Value, mod.test_functions.count());
const array_decl_index = try mod.createAnonymousDeclFromDecl(decl, decl.src_namespace, null, .{
.ty = try Type.Tag.array.create(arena, .{
.ty = try mod.arrayType(.{
.len = test_fn_vals.len,
.elem_type = try tmp_test_fn_ty.copy(arena),
.child = tmp_test_fn_ty.ip_index,
.sentinel = .none,
}),
.val = try Value.Tag.aggregate.create(arena, test_fn_vals),
});