| ... | @@ -11438,13 +11438,7 @@ static ZigType *ir_resolve_peer_types(IrAnalyze *ira, AstNode *source_node, ZigT | ... | @@ -11438,13 +11438,7 @@ static ZigType *ir_resolve_peer_types(IrAnalyze *ira, AstNode *source_node, ZigT |
| 11438 | } | 11438 | } |
| 11439 | } | 11439 | } |
| 11440 | } else if (any_are_null && prev_inst->value->type->id != ZigTypeIdNull) { | 11440 | } else if (any_are_null && prev_inst->value->type->id != ZigTypeIdNull) { |
| 11441 | if (prev_inst->value->type->id == ZigTypeIdComptimeInt || | 11441 | if (prev_inst->value->type->id == ZigTypeIdOptional) { |
| 11442 | prev_inst->value->type->id == ZigTypeIdComptimeFloat) | | |
| 11443 | { | | |
| 11444 | ir_add_error_node(ira, source_node, | | |
| 11445 | buf_sprintf("unable to make maybe out of number literal")); | | |
| 11446 | return ira->codegen->builtin_types.entry_invalid; | | |
| 11447 | } else if (prev_inst->value->type->id == ZigTypeIdOptional) { | | |
| 11448 | return prev_inst->value->type; | 11442 | return prev_inst->value->type; |
| 11449 | } else { | 11443 | } else { |
| 11450 | if ((err = type_resolve(ira->codegen, prev_inst->value->type, ResolveStatusSizeKnown))) | 11444 | if ((err = type_resolve(ira->codegen, prev_inst->value->type, ResolveStatusSizeKnown))) |