mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Rename singleton InstId constants to TypeInstId (#5323)
These constant instructions are all TypeInstId already in their type, and this makes their names match. Change the name of MakeSingletonInstId as well and update its comment.
This commit is contained in:
@@ -311,7 +311,8 @@ auto EvalConstantInst(Context& context, SemIR::NameRef inst)
|
||||
|
||||
auto EvalConstantInst(Context& context, SemIR::InstId inst_id,
|
||||
SemIR::RequireCompleteType inst) -> ConstantEvalResult {
|
||||
auto witness_type_id = GetSingletonType(context, SemIR::WitnessType::InstId);
|
||||
auto witness_type_id =
|
||||
GetSingletonType(context, SemIR::WitnessType::TypeInstId);
|
||||
|
||||
// If the type is a concrete constant, require it to be complete now.
|
||||
auto complete_type_id =
|
||||
|
||||
Reference in New Issue
Block a user