Remove ReturnTypeInfo (#6619)

This commit is contained in:
Geoff Romer authored and GitHub committed 2026-01-18 18:20:40 +00:00
1 parent cc204ead96
commit f53f837125
5 files changed
+5 -83

No files matched your search

-9
View File
@@ -314,15 +314,6 @@ auto FunctionContext::GetInitRepr(TypeInFile type) -> SemIR::InitRepr {
return result;
}
auto FunctionContext::GetReturnTypeInfo(InstInFile callee)
-> ReturnTypeInfoInFile {
ReturnTypeInfoInFile result = {
.file = callee.file,
.info = SemIR::ReturnTypeInfo::ForCallee(*callee.file, callee.inst_id)};
AddEnumToCurrentFingerprint(result.info.init_repr.kind);
return result;
}
// Given a type used for an LLVM value, return the type that we use to store
// that value in memory. This is the same type unless the type is a
// non-multiple-of-8 integer type, which we explicitly widen to a multiple of 8