mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:54:41 +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:
@@ -154,7 +154,7 @@ static auto BuildCalleeSpecificFunction(
|
||||
GetOrAddInst(context, context.insts().GetLocId(generic_callee_id),
|
||||
SemIR::SpecificImplFunction{
|
||||
.type_id = GetSingletonType(
|
||||
context, SemIR::SpecificFunctionType::InstId),
|
||||
context, SemIR::SpecificFunctionType::TypeInstId),
|
||||
.callee_id = generic_callee_id,
|
||||
.specific_id = callee_specific_id});
|
||||
} else {
|
||||
@@ -164,7 +164,7 @@ static auto BuildCalleeSpecificFunction(
|
||||
GetOrAddInst(context, context.insts().GetLocId(generic_callee_id),
|
||||
SemIR::SpecificFunction{
|
||||
.type_id = GetSingletonType(
|
||||
context, SemIR::SpecificFunctionType::InstId),
|
||||
context, SemIR::SpecificFunctionType::TypeInstId),
|
||||
.callee_id = generic_callee_id,
|
||||
.specific_id = callee_specific_id});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user