aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-06-25 23:06:53 -0700
committerGitHub <noreply@github.com>2023-06-25 23:06:53 -0700
commit40cf3f7ae5fbfb84b7af6b27e6296ee858b209ef (patch)
treee0c720d3fb38e61049a7411d7d176033e1616f69 /src/Module.zig
parentd98147414d084bc41b00ba9c0be8c7b82ad4e76c (diff)
parentb66865d0597124af02fed027a2d72c00b976a17f (diff)
downloadzig-40cf3f7ae5fbfb84b7af6b27e6296ee858b209ef.tar.gz
zig-40cf3f7ae5fbfb84b7af6b27e6296ee858b209ef.zip
Merge pull request #15995 from mlugg/fix/union-field-ptr-align
Sema: copy pointer alignment to union field pointers
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig1
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,