| ... | @@ -7626,7 +7626,10 @@ void render_const_value(CodeGen *g, Buf *buf, ZigValue *const_val) { | ... | @@ -7626,7 +7626,10 @@ void render_const_value(CodeGen *g, Buf *buf, ZigValue *const_val) { |
| 7626 | ZigValue *array = ptr_val->data.x_ptr.data.base_array.array_val; | 7626 | ZigValue *array = ptr_val->data.x_ptr.data.base_array.array_val; |
| 7627 | size_t start = ptr_val->data.x_ptr.data.base_array.elem_index; | 7627 | size_t start = ptr_val->data.x_ptr.data.base_array.elem_index; |
| 7628 | | 7628 | |
| 7629 | render_const_val_array(g, buf, &type_entry->name, array, start, len); | 7629 | if (array->special == ConstValSpecialUndef) |
| | 7630 | buf_append_str(buf, "undefined"); |
| | 7631 | else |
| | 7632 | render_const_val_array(g, buf, &type_entry->name, array, start, len); |
| 7630 | } else { | 7633 | } else { |
| 7631 | buf_appendf(buf, "(struct %s constant)", buf_ptr(&type_entry->name)); | 7634 | buf_appendf(buf, "(struct %s constant)", buf_ptr(&type_entry->name)); |
| 7632 | } | 7635 | } |