mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Remove InstId::Builtin members (#4632)
- `InstId::Builtin<Inst>` -> `<Inst>::SingletonInstId` - `InstId::PackageNamespace` -> `Namespace::PackageInstId`
This commit is contained in:
@@ -16,7 +16,7 @@ static auto GetFoundationType(const File& file, SpecificId specific_id,
|
||||
if (!inst_id.is_valid()) {
|
||||
return TypeId::Invalid;
|
||||
}
|
||||
if (inst_id == SemIR::InstId::BuiltinErrorInst) {
|
||||
if (inst_id == SemIR::ErrorInst::SingletonInstId) {
|
||||
return ErrorInst::SingletonTypeId;
|
||||
}
|
||||
return TypeId::ForTypeConstant(GetConstantValueInSpecific(
|
||||
|
||||
Reference in New Issue
Block a user