| ... | @@ -4683,7 +4683,10 @@ pub const Type = extern union { | ... | @@ -4683,7 +4683,10 @@ pub const Type = extern union { |
| 4683 | const union_obj = ty.cast(Payload.Union).?.data; | 4683 | const union_obj = ty.cast(Payload.Union).?.data; |
| 4684 | return union_obj.owner_decl; | 4684 | return union_obj.owner_decl; |
| 4685 | }, | 4685 | }, |
| 4686 | .@"opaque" => @panic("TODO"), | 4686 | .@"opaque" => { |
| | 4687 | const opaque_obj = ty.cast(Payload.Opaque).?.data; |
| | 4688 | return opaque_obj.owner_decl; |
| | 4689 | }, |
| 4687 | .atomic_order, | 4690 | .atomic_order, |
| 4688 | .atomic_rmw_op, | 4691 | .atomic_rmw_op, |
| 4689 | .calling_convention, | 4692 | .calling_convention, |
| ... | @@ -4695,7 +4698,8 @@ pub const Type = extern union { | ... | @@ -4695,7 +4698,8 @@ pub const Type = extern union { |
| 4695 | .export_options, | 4698 | .export_options, |
| 4696 | .extern_options, | 4699 | .extern_options, |
| 4697 | .type_info, | 4700 | .type_info, |
| 4698 | => @panic("TODO resolve std.builtin types"), | 4701 | => unreachable, // These need to be resolved earlier. |
| | 4702 | |
| 4699 | else => unreachable, | 4703 | else => unreachable, |
| 4700 | } | 4704 | } |
| 4701 | } | 4705 | } |