mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 08:54:47 +01:00
Model the return slot as an output parameter (#4432)
Also fix `Param` insts to have meaningful names in pretty-printing, to help clarify relationship with return slot.
This commit is contained in:
@@ -182,6 +182,11 @@ auto HandleInst(FunctionContext& /*context*/, SemIR::InstId /*inst_id*/,
|
||||
CARBON_FATAL("Parameters should be lowered by `BuildFunctionDefinition`");
|
||||
}
|
||||
|
||||
auto HandleInst(FunctionContext& /*context*/, SemIR::InstId /*inst_id*/,
|
||||
SemIR::ReturnSlot /*inst*/) -> void {
|
||||
CARBON_FATAL("Return slots should be lowered by `BuildFunctionDefinition`");
|
||||
}
|
||||
|
||||
auto HandleInst(FunctionContext& context, SemIR::InstId /*inst_id*/,
|
||||
SemIR::Return /*inst*/) -> void {
|
||||
context.builder().CreateRetVoid();
|
||||
|
||||
Reference in New Issue
Block a user