aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-06-16 23:08:33 +0100
committerJacob Young <jacobly0@users.noreply.github.com>2023-06-30 23:23:03 -0400
commit730f2e040770b9f537922c18d95d8bef0b2603d7 (patch)
tree2a069f4444915c7b6335966230b1d62ae6f9a309 /src/Module.zig
parent5b594139d93bb94642a94928adf00506f30da746 (diff)
downloadzig-730f2e040770b9f537922c18d95d8bef0b2603d7.tar.gz
zig-730f2e040770b9f537922c18d95d8bef0b2603d7.zip
Sema: copy pointer alignment to struct 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 6d04b8f894..16f1c4f641 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -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,