| ... | @@ -16482,12 +16482,6 @@ static TypeTableEntry *ir_analyze_min_max(IrAnalyze *ira, IrInstruction *source_ | ... | @@ -16482,12 +16482,6 @@ static TypeTableEntry *ir_analyze_min_max(IrAnalyze *ira, IrInstruction *source_ |
| 16482 | eval_min_max_value(ira->codegen, target_type, out_val, is_max); | 16482 | eval_min_max_value(ira->codegen, target_type, out_val, is_max); |
| 16483 | return ira->codegen->builtin_types.entry_num_lit_int; | 16483 | return ira->codegen->builtin_types.entry_num_lit_int; |
| 16484 | } | 16484 | } |
| 16485 | case TypeTableEntryIdFloat: | | |
| 16486 | { | | |
| 16487 | ConstExprValue *out_val = ir_build_const_from(ira, source_instruction); | | |
| 16488 | eval_min_max_value(ira->codegen, target_type, out_val, is_max); | | |
| 16489 | return ira->codegen->builtin_types.entry_num_lit_float; | | |
| 16490 | } | | |
| 16491 | case TypeTableEntryIdBool: | 16485 | case TypeTableEntryIdBool: |
| 16492 | case TypeTableEntryIdVoid: | 16486 | case TypeTableEntryIdVoid: |
| 16493 | { | 16487 | { |
| ... | @@ -16496,7 +16490,7 @@ static TypeTableEntry *ir_analyze_min_max(IrAnalyze *ira, IrInstruction *source_ | ... | @@ -16496,7 +16490,7 @@ static TypeTableEntry *ir_analyze_min_max(IrAnalyze *ira, IrInstruction *source_ |
| 16496 | return target_type; | 16490 | return target_type; |
| 16497 | } | 16491 | } |
| 16498 | case TypeTableEntryIdEnum: | 16492 | case TypeTableEntryIdEnum: |
| 16499 | zig_panic("TODO min/max value for enum type"); | 16493 | case TypeTableEntryIdFloat: |
| 16500 | case TypeTableEntryIdMetaType: | 16494 | case TypeTableEntryIdMetaType: |
| 16501 | case TypeTableEntryIdUnreachable: | 16495 | case TypeTableEntryIdUnreachable: |
| 16502 | case TypeTableEntryIdPointer: | 16496 | case TypeTableEntryIdPointer: |