| ... | @@ -5751,6 +5751,13 @@ void eval_min_max_value(CodeGen *g, ZigType *type_entry, ConstExprValue *const_v | ... | @@ -5751,6 +5751,13 @@ void eval_min_max_value(CodeGen *g, ZigType *type_entry, ConstExprValue *const_v |
| 5751 | } | 5751 | } |
| 5752 | | 5752 | |
| 5753 | void render_const_val_ptr(CodeGen *g, Buf *buf, ConstExprValue *const_val, ZigType *type_entry) { | 5753 | void render_const_val_ptr(CodeGen *g, Buf *buf, ConstExprValue *const_val, ZigType *type_entry) { |
| | 5754 | assert(type_entry->id == ZigTypeIdPointer); |
| | 5755 | |
| | 5756 | if (type_entry->data.pointer.child_type->id == ZigTypeIdOpaque) { |
| | 5757 | buf_append_buf(buf, &type_entry->name); |
| | 5758 | return; |
| | 5759 | } |
| | 5760 | |
| 5754 | switch (const_val->data.x_ptr.special) { | 5761 | switch (const_val->data.x_ptr.special) { |
| 5755 | case ConstPtrSpecialInvalid: | 5762 | case ConstPtrSpecialInvalid: |
| 5756 | zig_unreachable(); | 5763 | zig_unreachable(); |