diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-06-05 21:48:22 +0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-06-06 13:11:54 -0700 |
| commit | 14685e59b26c8dc002ce6c25c6916cbad54e79d0 (patch) | |
| tree | 00ed70d37e4a50a99170d75859471b519da3c453 /src/value.zig | |
| parent | 32568dba742a31051f2390b55b936a03b5146e17 (diff) | |
| download | zig-14685e59b26c8dc002ce6c25c6916cbad54e79d0.tar.gz zig-14685e59b26c8dc002ce6c25c6916cbad54e79d0.zip | |
stage2: use correct type (u29) for alignment
Diffstat (limited to 'src/value.zig')
| -rw-r--r-- | src/value.zig | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/value.zig b/src/value.zig index 37caeebd78..21fe52e706 100644 --- a/src/value.zig +++ b/src/value.zig @@ -30,6 +30,7 @@ pub const Value = extern union { i8_type, u16_type, i16_type, + u29_type, u32_type, i32_type, u64_type, @@ -196,6 +197,7 @@ pub const Value = extern union { .i8_type, .u16_type, .i16_type, + .u29_type, .u32_type, .i32_type, .u64_type, @@ -397,6 +399,7 @@ pub const Value = extern union { .i8_type, .u16_type, .i16_type, + .u29_type, .u32_type, .i32_type, .u64_type, @@ -660,6 +663,7 @@ pub const Value = extern union { .u8_type => return out_stream.writeAll("u8"), .i8_type => return out_stream.writeAll("i8"), .u16_type => return out_stream.writeAll("u16"), + .u29_type => return out_stream.writeAll("u29"), .i16_type => return out_stream.writeAll("i16"), .u32_type => return out_stream.writeAll("u32"), .i32_type => return out_stream.writeAll("i32"), @@ -900,6 +904,7 @@ pub const Value = extern union { .i8_type => Type.initTag(.i8), .u16_type => Type.initTag(.u16), .i16_type => Type.initTag(.i16), + .u29_type => Type.initTag(.u29), .u32_type => Type.initTag(.u32), .i32_type => Type.initTag(.i32), .u64_type => Type.initTag(.u64), @@ -4905,7 +4910,7 @@ pub const Value = extern union { /// `Module.resolvePeerTypes`. stored_inst_list: std.ArrayListUnmanaged(Air.Inst.Ref) = .{}, /// 0 means ABI-aligned. - alignment: u16, + alignment: u32, }, }; @@ -4916,7 +4921,7 @@ pub const Value = extern union { data: struct { decl_index: Module.Decl.Index, /// 0 means ABI-aligned. - alignment: u16, + alignment: u32, }, }; |
