| ... | @@ -17640,7 +17640,7 @@ static IrInstruction *ir_analyze_instruction_elem_ptr(IrAnalyze *ira, IrInstruct | ... | @@ -17640,7 +17640,7 @@ static IrInstruction *ir_analyze_instruction_elem_ptr(IrAnalyze *ira, IrInstruct |
| 17640 | return ira->codegen->invalid_instruction; | 17640 | return ira->codegen->invalid_instruction; |
| 17641 | | 17641 | |
| 17642 | if (array_ptr_val->special == ConstValSpecialUndef && elem_ptr_instruction->init_array_type != nullptr) { | 17642 | if (array_ptr_val->special == ConstValSpecialUndef && elem_ptr_instruction->init_array_type != nullptr) { |
| 17643 | if (array_type->id == ZigTypeIdArray) { | 17643 | if (array_type->id == ZigTypeIdArray || array_type->id == ZigTypeIdVector) { |
| 17644 | array_ptr_val->data.x_array.special = ConstArraySpecialNone; | 17644 | array_ptr_val->data.x_array.special = ConstArraySpecialNone; |
| 17645 | array_ptr_val->data.x_array.data.s_none.elements = create_const_vals(array_type->data.array.len); | 17645 | array_ptr_val->data.x_array.data.s_none.elements = create_const_vals(array_type->data.array.len); |
| 17646 | array_ptr_val->special = ConstValSpecialStatic; | 17646 | array_ptr_val->special = ConstValSpecialStatic; |