diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-03-08 20:52:38 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-08 20:52:38 -0700 |
| commit | 6f560c99094eec2210f2d76a2449b5f60191e11b (patch) | |
| tree | 7576694e5db2ef0ae63190fbb9fe20710920703f /src/Module.zig | |
| parent | a91753219df5d0b51f55dcad3e2ef96044efdd62 (diff) | |
| download | zig-6f560c99094eec2210f2d76a2449b5f60191e11b.tar.gz zig-6f560c99094eec2210f2d76a2449b5f60191e11b.zip | |
Sema: implement comptime struct fields
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 1 |
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. |
