| author | |
| committer | |
| log | f32b9bc776bfffe0a1adadc013ff3fa3e5d6d34b |
| tree | ed1717db1a7f6c8c931d5c08e244a11a2334ff93 |
| parent | 2209813baee8715e739d07b16a2910408ff9230a |
| signature |
This makes the reference trace appear for generic calls where it
previously did not.
Resolves: #167251 files changed, 2 insertions(+), 0 deletions(-)
src/Sema.zig+2| ... | ... | @@ -7908,6 +7908,8 @@ fn instantiateGenericCall( |
| 7908 | 7908 | const callee = mod.funcInfo(callee_index); |
| 7909 | 7909 | callee.branchQuota(ip).* = @max(callee.branchQuota(ip).*, sema.branch_quota); |
| 7910 | 7910 | |
| 7911 | try sema.addReferencedBy(block, call_src, callee.owner_decl); | |
| 7912 | ||
| 7911 | 7913 | // Make a runtime call to the new function, making sure to omit the comptime args. |
| 7912 | 7914 | const func_ty = callee.ty.toType(); |
| 7913 | 7915 | const func_ty_info = mod.typeToFunc(func_ty).?; |