mirror of
https://github.com/ziglang/zig.git
synced 2026-12-05 19:18:46 -05:00
Merge pull request #15995 from mlugg/fix/union-field-ptr-align
Sema: copy pointer alignment to union field pointers
This commit is contained in:
5 files changed
+230
-8
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user