mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
Sema: queue type resolution when analyzing ret_ptr during inline call
This commit is contained in:
parent
9965d960b5
commit
2e5d13e9cf
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user