mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +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:
@@ -52,8 +52,9 @@ static auto BuildInterfaceDecl(Context& context,
|
||||
auto decl_block_id = context.inst_block_stack().Pop();
|
||||
|
||||
// Add the interface declaration.
|
||||
auto interface_decl = SemIR::InterfaceDecl{
|
||||
SemIR::TypeId::TypeType, SemIR::InterfaceId::Invalid, decl_block_id};
|
||||
auto interface_decl =
|
||||
SemIR::InterfaceDecl{SemIR::TypeType::SingletonTypeId,
|
||||
SemIR::InterfaceId::Invalid, decl_block_id};
|
||||
auto interface_decl_id =
|
||||
context.AddPlaceholderInst(SemIR::LocIdAndInst(node_id, interface_decl));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user