mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 08:31:04 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user