aboutsummaryrefslogtreecommitdiff
path: root/lib/std/static_string_map.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-06-17 20:01:50 +0100
committermlugg <mlugg@mlugg.co.uk>2024-06-17 20:01:50 +0100
commitf37d0725fa4c6a0b5e4e9ca4d25e2760dc06764d (patch)
tree33b6fd35a429d3af5ebddeb47e29f428aa212e82 /lib/std/static_string_map.zig
parentb8d2323b88e68bb5af061dd7e488f51aa0ae8176 (diff)
downloadzig-f37d0725fa4c6a0b5e4e9ca4d25e2760dc06764d.tar.gz
zig-f37d0725fa4c6a0b5e4e9ca4d25e2760dc06764d.zip
Sema: fix callconv detection in generic functions
When analyzing `zirFunc` to instantiate a generic function, `sema.owner_decl` is not the owner Decl of the generic instance, but instead of the call site, so that dependencies are propagated correctly. (This aligns with the fact that in future, generic instantiations will not have a corresponding `Cau`.) So, when deciding the callconv in this case, we must check `sema.generic_owner` to determine whether the function is exported.
Diffstat (limited to 'lib/std/static_string_map.zig')
0 files changed, 0 insertions, 0 deletions