diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-05-16 00:02:26 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-05-16 00:02:26 -0400 |
| commit | 5cfabdd493c6602243f47e24320bae940a3c417a (patch) | |
| tree | 3d8acc6fd643058367a08d44274c8efb46d6829f /src/ir.cpp | |
| parent | 86a352c45bb654951529660b2e6cbbfa72773170 (diff) | |
| parent | 492a214d4c4f4feb15620dfd05230de0086825e5 (diff) | |
| download | zig-5cfabdd493c6602243f47e24320bae940a3c417a.tar.gz zig-5cfabdd493c6602243f47e24320bae940a3c417a.zip | |
Merge remote-tracking branch 'origin/master' into pointer-reform
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 9691e9e635..e2cbba48a7 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -16555,6 +16555,7 @@ static ConstExprValue *ir_make_type_info_value(IrAnalyze *ira, TypeTableEntry *t { size_t byte_offset = LLVMOffsetOfElement(ira->codegen->target_data_ref, type_entry->type_ref, struct_field->gen_index); inner_fields[1].data.x_maybe = create_const_vals(1); + inner_fields[1].data.x_maybe->special = ConstValSpecialStatic; inner_fields[1].data.x_maybe->type = ira->codegen->builtin_types.entry_usize; bigint_init_unsigned(&inner_fields[1].data.x_maybe->data.x_bigint, byte_offset); } |
