mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 03:20:29 +00: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:
1 parent
78d7a7c291
commit
0e92e6cc5a
30 files changed
+169
-162
No files matched your search
@@ -26,8 +26,8 @@ auto CheckFunctionTypeMatches(Context& context,
|
||||
new_function.GetDeclaredReturnType(context.sem_ir());
|
||||
auto prev_return_type_id =
|
||||
prev_function.GetDeclaredReturnType(context.sem_ir(), prev_specific_id);
|
||||
if (new_return_type_id == SemIR::TypeId::Error ||
|
||||
prev_return_type_id == SemIR::TypeId::Error) {
|
||||
if (new_return_type_id == SemIR::ErrorInst::SingletonTypeId ||
|
||||
prev_return_type_id == SemIR::ErrorInst::SingletonTypeId) {
|
||||
return false;
|
||||
}
|
||||
if (!context.types().AreEqualAcrossDeclarations(new_return_type_id,
|
||||
|
||||
Reference in new issue
Block a user