Sema: copy pointer alignment to struct field pointers

This commit is contained in:
mlugg
2023-06-16 23:08:33 +01:00
parent 2611d97fb0
commit 80e493cb36
3 changed files with 109 additions and 3 deletions

View File

@@ -991,6 +991,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,