mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 10:11:06 +01:00
Remove InstId::Builtin members (#4632)
- `InstId::Builtin<Inst>` -> `<Inst>::SingletonInstId` - `InstId::PackageNamespace` -> `Namespace::PackageInstId`
This commit is contained in:
@@ -86,7 +86,7 @@ auto Function::GetNameFromPatternId(const File& sem_ir, InstId pattern_id)
|
||||
inst = sem_ir.insts().Get(inst_id);
|
||||
}
|
||||
|
||||
if (inst_id == SemIR::InstId::BuiltinErrorInst) {
|
||||
if (inst_id == SemIR::ErrorInst::SingletonInstId) {
|
||||
return SemIR::NameId::Invalid;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user