aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-03-08 20:52:38 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-03-08 20:52:38 -0700
commit6f560c99094eec2210f2d76a2449b5f60191e11b (patch)
tree7576694e5db2ef0ae63190fbb9fe20710920703f /src/Module.zig
parenta91753219df5d0b51f55dcad3e2ef96044efdd62 (diff)
downloadzig-6f560c99094eec2210f2d76a2449b5f60191e11b.tar.gz
zig-6f560c99094eec2210f2d76a2449b5f60191e11b.zip
Sema: implement comptime struct fields
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 68e3a56752..b7299ebdab 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -884,6 +884,7 @@ pub const Struct = struct {
default_val: Value,
/// undefined until `status` is `have_layout`.
offset: u32,
+ /// If true then `default_val` is the comptime field value.
is_comptime: bool,
/// Returns the field alignment, assuming the struct is not packed.