| ... | @@ -6120,6 +6120,15 @@ static TypeTableEntry *ir_resolve_peer_types(IrAnalyze *ira, AstNode *source_nod | ... | @@ -6120,6 +6120,15 @@ static TypeTableEntry *ir_resolve_peer_types(IrAnalyze *ira, AstNode *source_nod |
| 6120 | { | 6120 | { |
| 6121 | prev_inst = cur_inst; | 6121 | prev_inst = cur_inst; |
| 6122 | continue; | 6122 | continue; |
| | 6123 | } else if (prev_type->id == TypeTableEntryIdMaybe && |
| | 6124 | types_match_const_cast_only(prev_type->data.maybe.child_type, cur_type)) |
| | 6125 | { |
| | 6126 | continue; |
| | 6127 | } else if (cur_type->id == TypeTableEntryIdMaybe && |
| | 6128 | types_match_const_cast_only(cur_type->data.maybe.child_type, prev_type)) |
| | 6129 | { |
| | 6130 | prev_inst = cur_inst; |
| | 6131 | continue; |
| 6123 | } else if (prev_type->id == TypeTableEntryIdNumLitInt || | 6132 | } else if (prev_type->id == TypeTableEntryIdNumLitInt || |
| 6124 | prev_type->id == TypeTableEntryIdNumLitFloat) | 6133 | prev_type->id == TypeTableEntryIdNumLitFloat) |
| 6125 | { | 6134 | { |