diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-08 01:00:59 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-08 01:00:59 -0500 |
| commit | c4ab8d9e12afbe07fc5b3cc4535a9fa2cfcad94d (patch) | |
| tree | 87b00360b19a327864f09cfe12289650eb50650d /src/type.zig | |
| parent | 1cdc51ec1012bc2a6d1c115eaaeb24a2a93c26c5 (diff) | |
| parent | 3871d5e55a6d52bacadd80163540a171e014605f (diff) | |
| download | zig-c4ab8d9e12afbe07fc5b3cc4535a9fa2cfcad94d.tar.gz zig-c4ab8d9e12afbe07fc5b3cc4535a9fa2cfcad94d.zip | |
Merge pull request #10532 from Hejsil/stage2-bit-shifting-passing
Stage2 bit_shifting.zig passing
Diffstat (limited to 'src/type.zig')
| -rw-r--r-- | src/type.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/type.zig b/src/type.zig index 4ad15f2399..f4561769e2 100644 --- a/src/type.zig +++ b/src/type.zig @@ -1916,7 +1916,7 @@ pub const Type = extern union { const fields = self.structFields(); const is_packed = if (self.castTag(.@"struct")) |payload| p: { const struct_obj = payload.data; - assert(struct_obj.status == .have_layout); + assert(struct_obj.haveLayout()); break :p struct_obj.layout == .Packed; } else false; @@ -2220,7 +2220,7 @@ pub const Type = extern union { if (field_count == 0) return 0; const struct_obj = ty.castTag(.@"struct").?.data; - assert(struct_obj.status == .have_layout); + assert(struct_obj.haveLayout()); var total: u64 = 0; for (struct_obj.fields.values()) |field| { @@ -3771,7 +3771,7 @@ pub const Type = extern union { switch (ty.tag()) { .@"struct" => { const struct_obj = ty.castTag(.@"struct").?.data; - assert(struct_obj.status == .have_layout); + assert(struct_obj.haveLayout()); const is_packed = struct_obj.layout == .Packed; if (!is_packed) { var offset: u64 = 0; |
