diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-06-30 23:23:26 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2023-06-30 23:23:26 -0400 |
| commit | 2282c278850e29af81e463d55c81fa08855823f8 (patch) | |
| tree | f816ac0c8c76639912e14a46c4fa7620824f0878 /src/Module.zig | |
| parent | 0a6cd257b9c8a9093b966e3851dc8261e19b531a (diff) | |
| parent | 402b958e19e2ae584903fde9576f89370558558c (diff) | |
| download | zig-2282c278850e29af81e463d55c81fa08855823f8.tar.gz zig-2282c278850e29af81e463d55c81fa08855823f8.zip | |
Remerge pull request #15995 from mlugg/fix/union-field-ptr-align
Sema: copy pointer alignment to union field pointers
This is an unrevert of 43c98dc11567eeb38be041c7dad179c53156f3df.
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Module.zig b/src/Module.zig index 56f2498fca..3bcc920fe2 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -992,6 +992,7 @@ pub const Struct = struct { is_comptime: bool, /// Returns the field alignment. If the struct is packed, returns 0. + /// Keep implementation in sync with `Sema.structFieldAlignment`. pub fn alignment( field: Field, mod: *Module, |
