authorgravatar for marc@tiehu.isMarc Tiehuis <marc@tiehu.is> 2018-08-24 17:57:17+12:00
committergravatar for marc@tiehu.isMarc Tiehuis <marc@tiehu.is> 2018-08-24 17:57:17+12:00
log05f9b14fc2d9950a1dd9a83d607ca2061711498b
treecd54d901efa9a8e0fc200ff99f5b4ae89d031d4a
parent3a02ba9b82faf2521af22857554690fbacc7fa8e

Fix builtin alignment type

Closes #1235.

2 files changed, 2 insertions(+), 2 deletions(-)

doc/langref.html.in+1-1
...@@ -6166,7 +6166,7 @@ pub const TypeInfo = union(TypeId) {...@@ -6166,7 +6166,7 @@ pub const TypeInfo = union(TypeId) {
6166 size: Size,6166 size: Size,
6167 is_const: bool,6167 is_const: bool,
6168 is_volatile: bool,6168 is_volatile: bool,
6169 alignment: u32,6169 alignment: u29,
6170 child: type,6170 child: type,
61716171
6172 pub const Size = enum {6172 pub const Size = enum {
src/ir.cpp+1-1
...@@ -17125,7 +17125,7 @@ static ConstExprValue *ir_make_type_info_value(IrAnalyze *ira, TypeTableEntry *t...@@ -17125,7 +17125,7 @@ static ConstExprValue *ir_make_type_info_value(IrAnalyze *ira, TypeTableEntry *t
17125 // alignment: u3217125 // alignment: u32
17126 ensure_field_index(result->type, "alignment", 3);17126 ensure_field_index(result->type, "alignment", 3);
17127 fields[3].special = ConstValSpecialStatic;17127 fields[3].special = ConstValSpecialStatic;
17128 fields[3].type = ira->codegen->builtin_types.entry_u32;17128 fields[3].type = get_int_type(ira->codegen, false, 29);
17129 bigint_init_unsigned(&fields[3].data.x_bigint, attrs_type->data.pointer.alignment);17129 bigint_init_unsigned(&fields[3].data.x_bigint, attrs_type->data.pointer.alignment);
17130 // child: type17130 // child: type
17131 ensure_field_index(result->type, "child", 4);17131 ensure_field_index(result->type, "child", 4);