Skip to content

Commit 31cf424

Browse files
committed
Sort alphabetically
1 parent b2cfcd0 commit 31cf424

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolchain/sem_ir/inst_namer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ class InstNamer {
6161
index = sem_ir_->functions().GetRawIndex(id);
6262
} else if constexpr (std::is_same_v<IdT, ImplId>) {
6363
index = sem_ir_->impls().GetRawIndex(id);
64+
} else if constexpr (std::is_same_v<IdT, InterfaceId>) {
65+
index = sem_ir_->interfaces().GetRawIndex(id);
6466
} else if constexpr (std::is_same_v<IdT, SpecificInterfaceId>) {
6567
index = sem_ir_->specific_interfaces().GetRawIndex(id);
6668
} else if constexpr (std::is_same_v<IdT, VtableId>) {
6769
index = sem_ir_->vtables().GetRawIndex(id);
68-
} else if constexpr (std::is_same_v<IdT, InterfaceId>) {
69-
index = sem_ir_->interfaces().GetRawIndex(id);
7070
}
7171
return static_cast<ScopeId>(GetScopeIdOffset(ScopeIdTypeEnum::For<IdT>) +
7272
index);

0 commit comments

Comments
 (0)