| ... | @@ -7938,7 +7938,11 @@ static TypeTableEntry *ir_analyze_instruction_phi(IrAnalyze *ira, IrInstructionP | ... | @@ -7938,7 +7938,11 @@ static TypeTableEntry *ir_analyze_instruction_phi(IrAnalyze *ira, IrInstructionP |
| 7938 | new_incoming_blocks.append(predecessor->other); | 7938 | new_incoming_blocks.append(predecessor->other); |
| 7939 | new_incoming_values.append(new_value); | 7939 | new_incoming_values.append(new_value); |
| 7940 | } | 7940 | } |
| 7941 | assert(new_incoming_blocks.length != 0); | 7941 | |
| | 7942 | if (new_incoming_blocks.length == 0) { |
| | 7943 | ir_build_const_from(ira, &phi_instruction->base, false); |
| | 7944 | return ira->codegen->builtin_types.entry_void; |
| | 7945 | } |
| 7942 | | 7946 | |
| 7943 | if (new_incoming_blocks.length == 1) { | 7947 | if (new_incoming_blocks.length == 1) { |
| 7944 | IrInstruction *first_value = new_incoming_values.at(0); | 7948 | IrInstruction *first_value = new_incoming_values.at(0); |