Commit 2e5d13e9cf

mlugg <mlugg@mlugg.co.uk>
2023-09-21 23:06:25
Sema: queue type resolution when analyzing ret_ptr during inline call
1 parent 9965d96
Changed files (1)
src/Sema.zig
@@ -3517,6 +3517,7 @@ fn zirRetPtr(sema: *Sema, block: *Block) CompileError!Air.Inst.Ref {
         // We are inlining a function call; this should be emitted as an alloc, not a ret_ptr.
         // TODO when functions gain result location support, the inlining struct in
         // Block should contain the return pointer, and we would pass that through here.
+        try sema.queueFullTypeResolution(sema.fn_ret_ty);
         return block.addTy(.alloc, ptr_type);
     }