mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:20:11 +01:00
Switch CalleeFunction to a variant (#6104)
Trying to make it easier to see what's intended to be present/correct on `CalleeFunction` in its various modes.
This commit is contained in:
@@ -227,7 +227,7 @@ static auto HasDeclaredReturnType(Context& context,
|
||||
auto BuildThunk(Context& context, SemIR::FunctionId signature_id,
|
||||
SemIR::SpecificId signature_specific_id,
|
||||
SemIR::InstId callee_id) -> SemIR::InstId {
|
||||
auto callee = SemIR::GetCalleeFunction(context.sem_ir(), callee_id);
|
||||
auto callee = SemIR::GetCalleeFunctionAsFunction(context.sem_ir(), callee_id);
|
||||
|
||||
// Check whether we can use the given function without a thunk.
|
||||
// TODO: For virtual functions, we want different rules for checking `self`.
|
||||
|
||||
Reference in New Issue
Block a user