authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2023-09-21 22:06:25+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-09-21 14:48:41-07:00
log2e5d13e9cf55ee66c544950b59f8620e626801a7
treeb11eef0e3cf638cecbc7acb466093ab597fdce7f
parent9965d960b594dcdc67b356201eba57db38be24f5

Sema: queue type resolution when analyzing ret_ptr during inline call


1 files changed, 1 insertions(+), 0 deletions(-)

src/Sema.zig+1
......@@ -3517,6 +3517,7 @@ fn zirRetPtr(sema: *Sema, block: *Block) CompileError!Air.Inst.Ref {
35173517 // We are inlining a function call; this should be emitted as an alloc, not a ret_ptr.
35183518 // TODO when functions gain result location support, the inlining struct in
35193519 // Block should contain the return pointer, and we would pass that through here.
3520 try sema.queueFullTypeResolution(sema.fn_ret_ty);
35203521 return block.addTy(.alloc, ptr_type);
35213522 }
35223523