| ... | ... | @@ -12449,7 +12449,7 @@ fn zirReify(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.I |
| 12449 | 12449 | const payload_val = union_val.val.optionalValue() orelse |
| 12450 | 12450 | return sema.addType(Type.initTag(.anyerror)); |
| 12451 | 12451 | const slice_val = payload_val.castTag(.slice).?.data; |
| 12452 | | const decl = slice_val.ptr.castTag(.decl_ref).?.data; |
| 12452 | const decl = slice_val.ptr.pointerDecl().?; |
| 12453 | 12453 | try sema.ensureDeclAnalyzed(decl); |
| 12454 | 12454 | const array_val = decl.val.castTag(.array).?.data; |
| 12455 | 12455 | |
| ... | ... | @@ -12493,7 +12493,7 @@ fn zirReify(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.I |
| 12493 | 12493 | |
| 12494 | 12494 | // Decls |
| 12495 | 12495 | const decls_slice_val = decls_val.castTag(.slice).?.data; |
| 12496 | | const decls_decl = decls_slice_val.ptr.castTag(.decl_ref).?.data; |
| 12496 | const decls_decl = decls_slice_val.ptr.pointerDecl().?; |
| 12497 | 12497 | try sema.ensureDeclAnalyzed(decls_decl); |
| 12498 | 12498 | if (decls_decl.ty.arrayLen() > 0) { |
| 12499 | 12499 | return sema.fail(block, src, "reified enums must have no decls", .{}); |
| ... | ... | @@ -12546,7 +12546,7 @@ fn zirReify(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.I |
| 12546 | 12546 | |
| 12547 | 12547 | // Fields |
| 12548 | 12548 | const slice_val = fields_val.castTag(.slice).?.data; |
| 12549 | | const decl = slice_val.ptr.castTag(.decl_ref).?.data; |
| 12549 | const decl = slice_val.ptr.pointerDecl().?; |
| 12550 | 12550 | try sema.ensureDeclAnalyzed(decl); |
| 12551 | 12551 | const fields_len = @intCast(usize, decl.ty.arrayLen()); |
| 12552 | 12552 | if (fields_len > 0) { |