Skip to content

Commit 6561505

Browse files
authored
Add the CheckIRId tag to NamedConstraintIds (#6298)
1 parent 356ea7f commit 6561505

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

toolchain/sem_ir/file.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ File::File(const Parse::Tree* parse_tree, CheckIRId check_ir_id,
4141
cpp_overload_sets_(check_ir_id),
4242
classes_(check_ir_id),
4343
interfaces_(check_ir_id),
44+
named_constraints_(check_ir_id),
4445
associated_constants_(check_ir_id),
4546
facet_types_(check_ir_id),
4647
identified_facet_types_(&facet_types_),

toolchain/sem_ir/inst_namer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ class InstNamer {
6464
index = sem_ir_->impls().GetRawIndex(id);
6565
} else if constexpr (std::is_same_v<IdT, InterfaceId>) {
6666
index = sem_ir_->interfaces().GetRawIndex(id);
67+
} else if constexpr (std::is_same_v<IdT, NamedConstraintId>) {
68+
index = sem_ir_->named_constraints().GetRawIndex(id);
6769
} else if constexpr (std::is_same_v<IdT, SpecificInterfaceId>) {
6870
index = sem_ir_->specific_interfaces().GetRawIndex(id);
6971
} else if constexpr (std::is_same_v<IdT, VtableId>) {

0 commit comments

Comments
 (0)