diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-06-17 20:01:50 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2024-06-17 20:01:50 +0100 |
| commit | f37d0725fa4c6a0b5e4e9ca4d25e2760dc06764d (patch) | |
| tree | 33b6fd35a429d3af5ebddeb47e29f428aa212e82 /src/Compilation.zig | |
| parent | b8d2323b88e68bb5af061dd7e488f51aa0ae8176 (diff) | |
| download | zig-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 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
