diff options
| author | Micah Switzer <micah.switzer.dev@outlook.com> | 2022-11-03 19:56:23 -0400 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-11-04 15:48:08 +0200 |
| commit | ea54c9a375ef8f419694b39b9f14f181fa0b82ee (patch) | |
| tree | cbee514ea87c5603088ef8bba6db030bea2527dd /src/Sema.zig | |
| parent | cbed6bb08555222008e87cfb071adeed97b3f8a4 (diff) | |
| download | zig-ea54c9a375ef8f419694b39b9f14f181fa0b82ee.tar.gz zig-ea54c9a375ef8f419694b39b9f14f181fa0b82ee.zip | |
Sema: resolve lazy align in zirReify for union fields
Closes #13435
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index bd956d32bc..8bf0649cc2 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -18232,7 +18232,7 @@ fn zirReify(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstData, in var buffer: Value.ToTypeBuffer = undefined; gop.value_ptr.* = .{ .ty = try field_type_val.toType(&buffer).copy(new_decl_arena_allocator), - .abi_align = @intCast(u32, alignment_val.toUnsignedInt(target)), + .abi_align = @intCast(u32, (try alignment_val.getUnsignedIntAdvanced(target, sema.kit(block, src))).?), }; } |
