Remove ReturnTypeInfo (#6619)

This commit is contained in:
Geoff Romer
2026-01-18 18:20:40 +00:00
committed by GitHub
parent cc204ead96
commit f53f837125
5 changed files with 5 additions and 83 deletions
-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