| ... | ... | @@ -1655,8 +1655,10 @@ static bool types_match_const_cast_only(TypeTableEntry *expected_type, TypeTable |
| 1655 | 1655 | if (expected_type->data.fn.fn_type_id.is_cold != actual_type->data.fn.fn_type_id.is_cold) { |
| 1656 | 1656 | return false; |
| 1657 | 1657 | } |
| 1658 | | if (!types_match_const_cast_only(expected_type->data.fn.fn_type_id.return_type, |
| 1659 | | actual_type->data.fn.fn_type_id.return_type)) |
| 1658 | if (actual_type->data.fn.fn_type_id.return_type->id != TypeTableEntryIdUnreachable && |
| 1659 | !types_match_const_cast_only( |
| 1660 | expected_type->data.fn.fn_type_id.return_type, |
| 1661 | actual_type->data.fn.fn_type_id.return_type)) |
| 1660 | 1662 | { |
| 1661 | 1663 | return false; |
| 1662 | 1664 | } |