diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-08-24 10:42:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-24 10:42:43 -0400 |
| commit | 0a918aaa14edea5edb456e2171d932f999fc1af5 (patch) | |
| tree | cd54d901efa9a8e0fc200ff99f5b4ae89d031d4a /src/ir.cpp | |
| parent | 3a02ba9b82faf2521af22857554690fbacc7fa8e (diff) | |
| parent | 05f9b14fc2d9950a1dd9a83d607ca2061711498b (diff) | |
| download | zig-0a918aaa14edea5edb456e2171d932f999fc1af5.tar.gz zig-0a918aaa14edea5edb456e2171d932f999fc1af5.zip | |
Merge pull request #1407 from ziglang/builtin-alignment-fix
Fix builtin alignment type
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 32650204a6..406af8ee42 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -17125,7 +17125,7 @@ static ConstExprValue *ir_make_type_info_value(IrAnalyze *ira, TypeTableEntry *t // alignment: u32 ensure_field_index(result->type, "alignment", 3); fields[3].special = ConstValSpecialStatic; - fields[3].type = ira->codegen->builtin_types.entry_u32; + fields[3].type = get_int_type(ira->codegen, false, 29); bigint_init_unsigned(&fields[3].data.x_bigint, attrs_type->data.pointer.alignment); // child: type ensure_field_index(result->type, "child", 4); |
