Sema: copy pointer alignment to struct field pointers

This commit is contained in:
mlugg
2023-06-16 23:08:33 +01:00
committed by Jacob Young
parent 5b594139d9
commit 730f2e0407
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,