Remove redundant SemIR:: uses in SemIR (#6106)

Also cleaned up some in #6105, which is what got me looking for more.
This commit is contained in:
Jon Ross-Perkins
2025-09-22 15:55:46 +00:00
committed by GitHub
parent 412d911578
commit ef1e47cd07
13 changed files with 37 additions and 43 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ static auto GetBoundEntityName(const File& sem_ir, Inst inst)
return {sem_ir.entity_names().Get(binding_pattern->entity_name_id).name_id,
binding_pattern->entity_name_id};
}
return {SemIR::NameId::None, SemIR::EntityNameId::None};
return {NameId::None, EntityNameId::None};
}
auto IsSelfPattern(const File& sem_ir, InstId pattern_id) -> bool {
@@ -56,7 +56,7 @@ auto GetFirstBindingNameFromPatternId(const File& sem_ir, InstId pattern_id)
llvm::SmallVector<InstId> work_list = {pattern_id};
while (!work_list.empty()) {
auto [_, inst] = GetUnwrapped(sem_ir, work_list.pop_back_val());
if (auto tuple_patt = inst.TryAs<SemIR::TuplePattern>()) {
if (auto tuple_patt = inst.TryAs<TuplePattern>()) {
auto block = sem_ir.inst_blocks().Get(tuple_patt->elements_id);
work_list.append(block.rbegin(), block.rend());
continue;