| ... | @@ -7908,6 +7908,8 @@ fn instantiateGenericCall( | ... | @@ -7908,6 +7908,8 @@ fn instantiateGenericCall( |
| 7908 | const callee = mod.funcInfo(callee_index); | 7908 | const callee = mod.funcInfo(callee_index); |
| 7909 | callee.branchQuota(ip).* = @max(callee.branchQuota(ip).*, sema.branch_quota); | 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 | // Make a runtime call to the new function, making sure to omit the comptime args. | 7913 | // Make a runtime call to the new function, making sure to omit the comptime args. |
| 7912 | const func_ty = callee.ty.toType(); | 7914 | const func_ty = callee.ty.toType(); |
| 7913 | const func_ty_info = mod.typeToFunc(func_ty).?; | 7915 | const func_ty_info = mod.typeToFunc(func_ty).?; |