| ... | @@ -16309,9 +16309,6 @@ static IrInstruction *ir_analyze_instruction_to_ptr_type(IrAnalyze *ira, | ... | @@ -16309,9 +16309,6 @@ static IrInstruction *ir_analyze_instruction_to_ptr_type(IrAnalyze *ira, |
| 16309 | | 16309 | |
| 16310 | ZigType *ptr_type; | 16310 | ZigType *ptr_type; |
| 16311 | if (type_entry->id == ZigTypeIdArray) { | 16311 | if (type_entry->id == ZigTypeIdArray) { |
| 16312 | // TODO: Allow capturing pointer to const array. | | |
| 16313 | // const a = "123"; for (a) |*c| continue; | | |
| 16314 | // error: expected type '*u8', found '*const u8' | | |
| 16315 | ptr_type = get_pointer_to_type(ira->codegen, type_entry->data.array.child_type, ptr_ptr_type->data.pointer.is_const); | 16312 | ptr_type = get_pointer_to_type(ira->codegen, type_entry->data.array.child_type, ptr_ptr_type->data.pointer.is_const); |
| 16316 | } else if (is_array_ref(type_entry)) { | 16313 | } else if (is_array_ref(type_entry)) { |
| 16317 | ptr_type = get_pointer_to_type(ira->codegen, | 16314 | ptr_type = get_pointer_to_type(ira->codegen, |