| ... | ... | @@ -11472,6 +11472,14 @@ static TypeTableEntry *ir_analyze_instruction_field_ptr(IrAnalyze *ira, IrInstru |
| 11472 | 11472 | create_const_type(ira->codegen, child_type->data.pointer.child_type), |
| 11473 | 11473 | ira->codegen->builtin_types.entry_type, |
| 11474 | 11474 | ConstPtrMutComptimeConst, ptr_is_const, ptr_is_volatile); |
| 11475 | } else if (buf_eql_str(field_name, "alignment")) { |
| 11476 | bool ptr_is_const = true; |
| 11477 | bool ptr_is_volatile = false; |
| 11478 | return ir_analyze_const_ptr(ira, &field_ptr_instruction->base, |
| 11479 | create_const_unsigned_negative(ira->codegen->builtin_types.entry_num_lit_int, |
| 11480 | child_type->data.pointer.alignment, false), |
| 11481 | ira->codegen->builtin_types.entry_num_lit_int, |
| 11482 | ConstPtrMutComptimeConst, ptr_is_const, ptr_is_volatile); |
| 11475 | 11483 | } else { |
| 11476 | 11484 | ir_add_error(ira, &field_ptr_instruction->base, |
| 11477 | 11485 | buf_sprintf("type '%s' has no member called '%s'", |