wip: progress towards compiling tests

This commit is contained in:
mlugg
2023-05-07 15:23:12 +01:00
committed by Andrew Kelley
parent 9d9e1a2991
commit c1ca16d779
5 changed files with 213 additions and 134 deletions

View File

@@ -2481,7 +2481,7 @@ pub const DeclGen = struct {
log.debug("gen: {s} type: {}, value: {}", .{
decl.name, decl.ty.fmtDebug(), decl.val.fmtDebug(),
});
assert(decl.val.tag() != .function);
assert(decl.val.ip_index != .none or decl.val.tag() != .function);
if (decl.val.castTag(.extern_fn)) |extern_fn| {
_ = try dg.resolveLlvmFunction(extern_fn.data.owner_decl);
} else {