mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Rename type's GetInstId to GetTypeInstId, reflecting returned type (#6708)
Discussed briefly [on Discord](https://discord.com/channels/655572317891461132/655578254970716160/1470442830118912265), done to reduce confusion. Assisted-by: Google Antigravity with Gemini 3 Flash
This commit is contained in:
@@ -819,7 +819,7 @@ static auto MapBuiltinType(Context& context, SemIR::LocId loc_id,
|
||||
if (type.isBooleanType()) {
|
||||
CARBON_CHECK(ast_context.hasSameType(qual_type, ast_context.BoolTy));
|
||||
return ExprAsType(context, Parse::NodeId::None,
|
||||
context.types().GetInstId(GetSingletonType(
|
||||
context.types().GetTypeInstId(GetSingletonType(
|
||||
context, SemIR::BoolType::TypeInstId)));
|
||||
}
|
||||
if (type.isInteger()) {
|
||||
@@ -989,7 +989,7 @@ static auto MapReferenceType(Context& context, clang::QualType type,
|
||||
SemIR::TypeId pointer_type_id =
|
||||
GetPointerType(context, referenced_type_expr.inst_id);
|
||||
pointer_type_id =
|
||||
GetConstType(context, context.types().GetInstId(pointer_type_id));
|
||||
GetConstType(context, context.types().GetTypeInstId(pointer_type_id));
|
||||
return TypeExpr::ForUnsugared(context, pointer_type_id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user