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:
Jon Ross-Perkins
2026-02-09 22:00:21 +00:00
committed by GitHub
parent a465018fec
commit 2c6d9c7f66
41 changed files with 99 additions and 91 deletions
+2 -2
View File
@@ -685,7 +685,7 @@ auto PerformCppThunkCall(Context& context, SemIR::LocId loc_id,
arg_id = AddInst<SemIR::AddrOf>(
context, loc_id,
{.type_id = GetPointerType(
context, context.types().GetInstId(callee_param_type_id)),
context, context.types().GetTypeInstId(callee_param_type_id)),
.lvalue_id = arg_id});
arg_id =
ConvertToValueOfType(context, loc_id, arg_id, thunk_param_type_id);
@@ -705,7 +705,7 @@ auto PerformCppThunkCall(Context& context, SemIR::LocId loc_id,
auto arg_id = AddInst<SemIR::AddrOf>(
context, loc_id,
{.type_id = GetPointerType(
context, context.types().GetInstId(
context, context.types().GetTypeInstId(
context.insts().Get(return_slot_id).type_id())),
.lvalue_id = return_slot_id});
thunk_arg_ids.push_back(arg_id);