| ... | ... | @@ -4819,6 +4819,8 @@ pub fn getFuncInstanceIes( |
| 4819 | 4819 | assert(arg.bare_return_type != .none); |
| 4820 | 4820 | for (arg.param_types) |param_type| assert(param_type != .none); |
| 4821 | 4821 | |
| 4822 | const generic_owner = unwrapCoercedFunc(ip, arg.generic_owner); |
| 4823 | |
| 4822 | 4824 | // The strategy here is to add the function decl unconditionally, then to |
| 4823 | 4825 | // ask if it already exists, and if so, revert the lengths of the mutated |
| 4824 | 4826 | // arrays. This is similar to what `getOrPutTrailingString` does. |
| ... | ... | @@ -4854,7 +4856,7 @@ pub fn getFuncInstanceIes( |
| 4854 | 4856 | .owner_decl = undefined, |
| 4855 | 4857 | .ty = func_ty, |
| 4856 | 4858 | .branch_quota = 0, |
| 4857 | | .generic_owner = arg.generic_owner, |
| 4859 | .generic_owner = generic_owner, |
| 4858 | 4860 | }); |
| 4859 | 4861 | ip.extra.appendAssumeCapacity(@intFromEnum(Index.none)); // resolved error set |
| 4860 | 4862 | ip.extra.appendSliceAssumeCapacity(@ptrCast(arg.comptime_args)); |
| ... | ... | @@ -4927,7 +4929,7 @@ pub fn getFuncInstanceIes( |
| 4927 | 4929 | return finishFuncInstance( |
| 4928 | 4930 | ip, |
| 4929 | 4931 | gpa, |
| 4930 | | arg.generic_owner, |
| 4932 | generic_owner, |
| 4931 | 4933 | func_index, |
| 4932 | 4934 | func_extra_index, |
| 4933 | 4935 | arg.generation, |