mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 23:30:28 +00:00
Remove return_slot_id (#4577)
Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
1 parent
33110d096c
commit
78d7a7c291
109 files changed
+1160
-1185
No files matched your search
@@ -104,11 +104,11 @@ auto Function::GetNameFromPatternId(const File& sem_ir, InstId pattern_id)
|
||||
|
||||
auto Function::GetDeclaredReturnType(const File& file,
|
||||
SpecificId specific_id) const -> TypeId {
|
||||
if (!return_slot_id.is_valid()) {
|
||||
if (!return_slot_pattern_id.is_valid()) {
|
||||
return TypeId::Invalid;
|
||||
}
|
||||
return GetTypeInSpecific(file, specific_id,
|
||||
file.insts().Get(return_slot_id).type_id());
|
||||
file.insts().Get(return_slot_pattern_id).type_id());
|
||||
}
|
||||
|
||||
} // namespace Carbon::SemIR
|
||||
Reference in new issue
Block a user