aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-05-15 14:11:41 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-05-15 14:11:41 -0400
commit74b10c08d1bd0b64aa8175dff6dec178c7c3bbee (patch)
tree38753acad1d76ab0a65083eb61ebf1cc49eaf673 /src/ir.cpp
parent04bca58a3a3a85eeaa36ab4c2cc0881347e123b0 (diff)
downloadzig-74b10c08d1bd0b64aa8175dff6dec178c7c3bbee.tar.gz
zig-74b10c08d1bd0b64aa8175dff6dec178c7c3bbee.zip
fix @typeInfo not setting a field to comptime
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 31d22ca82a..cade660651 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -16549,6 +16549,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);
}