mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 19:11:09 +01:00
Switch TypeId::TypeType to TypeType::SingletonTypeId, and similar (#4619)
`ids.h` and `ids.cpp` are the manual edits, everything else is search-and-replace. The full list of things moved is: - `TypeId::TypeType` - `TypeId::AutoType` - `TypeId::Error` - `ConstantId::Error` This is to unblock removing `InstId::Builtin*`.
This commit is contained in:
@@ -36,7 +36,7 @@ auto GetCalleeFunction(const File& sem_ir, InstId callee_id) -> CalleeFunction {
|
||||
auto val_inst = sem_ir.insts().Get(val_id);
|
||||
auto struct_val = val_inst.TryAs<StructValue>();
|
||||
if (!struct_val) {
|
||||
result.is_error = val_inst.type_id() == SemIR::TypeId::Error;
|
||||
result.is_error = val_inst.type_id() == SemIR::ErrorInst::SingletonTypeId;
|
||||
return result;
|
||||
}
|
||||
auto fn_type = sem_ir.types().TryGetAs<FunctionType>(struct_val->type_id);
|
||||
|
||||
Reference in New Issue
Block a user