diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-12-28 20:48:21 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-12-28 23:22:09 -0700 |
| commit | 91619cdf57f54accbdbb3ff616856eaf79b537a3 (patch) | |
| tree | 9da2362e728f068103a1ab83a89411f825a5c10b /src/Module.zig | |
| parent | 2dd725571302a2e6e4101565554e88b4a10b0994 (diff) | |
| download | zig-91619cdf57f54accbdbb3ff616856eaf79b537a3.tar.gz zig-91619cdf57f54accbdbb3ff616856eaf79b537a3.zip | |
Sema: implement calling a fn ptr via a union field
Also, ignore `packed` on unions because that will be removed from the
language.
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/Module.zig b/src/Module.zig index 2c5c01bb7a..a1f804c282 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -1104,9 +1104,6 @@ pub const Union = struct { pub fn getLayout(u: Union, target: Target, have_tag: bool) Layout { assert(u.status == .have_layout); - const is_packed = u.layout == .Packed; - if (is_packed) @panic("TODO packed unions"); - var most_aligned_field: usize = undefined; var most_aligned_field_size: u64 = undefined; var biggest_field: usize = undefined; |
