stage2: more InternPool-related fixes

This commit is contained in:
Andrew Kelley
2023-05-07 16:14:08 -07:00
parent 4d88f825bc
commit 4fe0c583be
4 changed files with 57 additions and 24 deletions

View File

@@ -6716,6 +6716,7 @@ fn reportRetryableFileError(
}
pub fn markReferencedDeclsAlive(mod: *Module, val: Value) void {
if (val.ip_index != .none) return;
switch (val.tag()) {
.decl_ref_mut => return mod.markDeclIndexAlive(val.castTag(.decl_ref_mut).?.data.decl_index),
.extern_fn => return mod.markDeclIndexAlive(val.castTag(.extern_fn).?.data.owner_decl),