stage2: use correct type (u29) for alignment

This commit is contained in:
Veikka Tuominen
2022-06-05 21:48:22 +03:00
committed by Andrew Kelley
parent 32568dba74
commit 14685e59b2
7 changed files with 49 additions and 11 deletions

View File

@@ -4016,7 +4016,7 @@ fn semaDecl(mod: *Module, decl_index: Decl.Index) !bool {
try wip_captures.finalize();
const src: LazySrcLoc = .{ .node_offset = 0 };
const decl_tv = try sema.resolveInstValue(&block_scope, src, result_ref);
const decl_align: u16 = blk: {
const decl_align: u32 = blk: {
const align_ref = decl.zirAlignRef();
if (align_ref == .none) break :blk 0;
break :blk try sema.resolveAlign(&block_scope, src, align_ref);