mirror of
https://github.com/ziglang/zig.git
synced 2026-01-02 19:43:29 +00:00
Sema: add references to generic instantiations
This makes the reference trace appear for generic calls where it previously did not. Resolves: #16725
This commit is contained in:
parent
2209813bae
commit
f32b9bc776
@ -7908,6 +7908,8 @@ fn instantiateGenericCall(
|
||||
const callee = mod.funcInfo(callee_index);
|
||||
callee.branchQuota(ip).* = @max(callee.branchQuota(ip).*, sema.branch_quota);
|
||||
|
||||
try sema.addReferencedBy(block, call_src, callee.owner_decl);
|
||||
|
||||
// Make a runtime call to the new function, making sure to omit the comptime args.
|
||||
const func_ty = callee.ty.toType();
|
||||
const func_ty_info = mod.typeToFunc(func_ty).?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user