Add unit tagging to AssociatedConstantId (#6207)

No update to lldbinit.py because we don't currently have
dumping/debugging support for AssociatedConstantId anyway.
This commit is contained in:
David Blaikie
2025-10-13 23:06:02 +00:00
committed by GitHub
parent ad63950df2
commit b2c2bdde3a
4 changed files with 9 additions and 0 deletions
+1
View File
@@ -36,6 +36,7 @@ File::File(const Parse::Tree* parse_tree, CheckIRId check_ir_id,
value_stores_(&value_stores),
filename_(std::move(filename)),
classes_(IdTag(check_ir_id.index, 0)),
associated_constants_(IdTag(check_ir_id.index, 0)),
impls_(*this),
// The `+1` prevents adding a tag to the global `NameSpace::PackageInstId`
// instruction. It's not a "singleton" instruction, but it's a unique