Module: intern the values of decls when they are marked alive
I'm not sure if this is the right place for this to happen, and it should become obsolete when comptime mutation is rewritten and the remaining legacy value tags are remove, so keeping this as a separate revertable commit.
This commit is contained in:
committed by
Andrew Kelley
parent
f37c0a4593
commit
9a738c0be5
@@ -673,7 +673,7 @@ fn lowerDeclRef(
|
||||
return Result.ok;
|
||||
}
|
||||
|
||||
mod.markDeclAlive(decl);
|
||||
try mod.markDeclAlive(decl);
|
||||
|
||||
const vaddr = try bin_file.getDeclVAddr(decl_index, .{
|
||||
.parent_atom_index = reloc_info.parent_atom_index,
|
||||
@@ -782,7 +782,7 @@ fn genDeclRef(
|
||||
}
|
||||
}
|
||||
|
||||
mod.markDeclAlive(decl);
|
||||
try mod.markDeclAlive(decl);
|
||||
|
||||
const is_threadlocal = tv.val.isPtrToThreadLocal(mod) and !bin_file.options.single_threaded;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user