| ... | @@ -113,7 +113,7 @@ static TypeTableEntry *adjust_ptr_align(CodeGen *g, TypeTableEntry *ptr_type, ui | ... | @@ -113,7 +113,7 @@ static TypeTableEntry *adjust_ptr_align(CodeGen *g, TypeTableEntry *ptr_type, ui |
| 113 | static TypeTableEntry *adjust_slice_align(CodeGen *g, TypeTableEntry *slice_type, uint32_t new_align); | 113 | static TypeTableEntry *adjust_slice_align(CodeGen *g, TypeTableEntry *slice_type, uint32_t new_align); |
| 114 | | 114 | |
| 115 | ConstExprValue *const_ptr_pointee(CodeGen *g, ConstExprValue *const_val) { | 115 | ConstExprValue *const_ptr_pointee(CodeGen *g, ConstExprValue *const_val) { |
| 116 | assert(const_val->type->id == TypeTableEntryIdPointer); | 116 | assert(get_codegen_ptr_type(const_val->type) != nullptr); |
| 117 | assert(const_val->special == ConstValSpecialStatic); | 117 | assert(const_val->special == ConstValSpecialStatic); |
| 118 | switch (const_val->data.x_ptr.special) { | 118 | switch (const_val->data.x_ptr.special) { |
| 119 | case ConstPtrSpecialInvalid: | 119 | case ConstPtrSpecialInvalid: |