diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-10-05 15:31:34 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-10-06 20:09:45 +0300 |
| commit | 775e055b59366f60badfb77a420219691846314b (patch) | |
| tree | f9a32fdd42363ecc14e787242efbf5e996262727 /src | |
| parent | 94039d66ed4fecb7defc5deeeedd7afa3b773f0c (diff) | |
| download | zig-775e055b59366f60badfb77a420219691846314b.tar.gz zig-775e055b59366f60badfb77a420219691846314b.zip | |
Sema: generic function instantiation inherits parent's branch quota
Closes #12624
Diffstat (limited to 'src')
| -rw-r--r-- | src/Sema.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index f2b3cee3e3..01c8b395bc 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -6713,6 +6713,8 @@ fn instantiateGenericCall( .comptime_args_fn_inst = module_fn.zir_body_inst, .preallocated_new_func = new_module_func, .is_generic_instantiation = true, + .branch_quota = sema.branch_quota, + .branch_count = sema.branch_count, }; defer child_sema.deinit(); |
