mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 15:51:07 +01:00
Move GetTypeInInstance from Check to SemIR. (#4144)
In preparation for this function being used by other parts of `SemIR` and by lowering.
This commit is contained in:
@@ -279,8 +279,9 @@ static auto BuildFunctionDecl(Context& context,
|
||||
// substitution is ready.
|
||||
if (return_storage_id.is_valid()) {
|
||||
auto return_storage = context.insts().Get(return_storage_id);
|
||||
return_storage.SetType(GetTypeInInstance(
|
||||
context, SemIR::GenericInstanceId::Invalid, return_storage.type_id()));
|
||||
return_storage.SetType(SemIR::GetTypeInInstance(
|
||||
context.sem_ir(), SemIR::GenericInstanceId::Invalid,
|
||||
return_storage.type_id()));
|
||||
context.sem_ir().insts().Set(return_storage_id, return_storage);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user