From d89807efbb1bd5af0a92544298fc08ad6ba2d255 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 12 May 2023 10:59:04 -0700 Subject: stage2: remove legacy Type array and array_sentinel These are now handled by the InternPool. --- src/Module.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Module.zig') diff --git a/src/Module.zig b/src/Module.zig index b32904e165..426d274011 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -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), }); -- cgit v1.2.3