diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-07-18 21:46:30 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-07-18 21:46:30 -0700 |
| commit | 9262b6076f38eb614fb45c1f69f125665f0fa8d9 (patch) | |
| tree | d7a5263287cc1c4c7ed9588ebba01c61c462b085 /src/Sema.zig | |
| parent | c597ba32d930df0c2d5be846f3b14a19a5c440c5 (diff) | |
| download | zig-9262b6076f38eb614fb45c1f69f125665f0fa8d9.tar.gz zig-9262b6076f38eb614fb45c1f69f125665f0fa8d9.zip | |
Sema: fix generic function instances not respecting linksection
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index a88b29cd10..3f8b936e0b 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -8846,6 +8846,11 @@ fn funcCommon( .bare_return_type = bare_return_type.toIntern(), .cc = cc_resolved, .alignment = alignment.?, + .section = switch (section) { + .generic => unreachable, + .default => .none, + .explicit => |x| x.toOptional(), + }, .is_noinline = is_noinline, .inferred_error_set = inferred_error_set, .generic_owner = sema.generic_owner, |
