mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:14:42 +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:
@@ -57,7 +57,7 @@ static auto IsCppClassType(Context& context, SemIR::InstId inst_id) -> bool {
|
||||
|
||||
// Returns whether the instruction is a value of C++ class type.
|
||||
static auto HasCppClassType(Context& context, SemIR::InstId inst_id) -> bool {
|
||||
return IsCppClassType(context, context.types().GetInstId(
|
||||
return IsCppClassType(context, context.types().GetTypeInstId(
|
||||
context.insts().Get(inst_id).type_id()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user