mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 21:21:04 +01:00
More consistently use check_ir_id to initialize ValueStores (#6244)
This commit is contained in:
@@ -40,12 +40,12 @@ File::File(const Parse::Tree* parse_tree, CheckIRId check_ir_id,
|
||||
classes_(check_ir_id),
|
||||
associated_constants_(check_ir_id),
|
||||
impls_(*this),
|
||||
specific_interfaces_(check_ir_id_),
|
||||
specific_interfaces_(check_ir_id),
|
||||
// The `+1` prevents adding a tag to the global `NameSpace::PackageInstId`
|
||||
// instruction. It's not a "singleton" instruction, but it's a unique
|
||||
// instruction id that comes right after the singletons.
|
||||
insts_(this, SingletonInstKinds.size() + 1),
|
||||
vtables_(IdTag(check_ir_id.index, 0)),
|
||||
vtables_(check_ir_id),
|
||||
constant_values_(ConstantId::NotConstant, &insts_),
|
||||
inst_blocks_(allocator_),
|
||||
constants_(this) {
|
||||
|
||||
Reference in New Issue
Block a user