diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-12-28 01:15:09 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-12-28 01:15:09 -0500 |
| commit | 25a5fc32fe68f911f7ac34e513e98cacb0ca17b1 (patch) | |
| tree | f709bc56d497216944224b8a1c3706431e684c27 /src/ir.cpp | |
| parent | 15f843e70f18fe0cd7ee31a67af6eb8d6302dcbc (diff) | |
| download | zig-25a5fc32fe68f911f7ac34e513e98cacb0ca17b1.tar.gz zig-25a5fc32fe68f911f7ac34e513e98cacb0ca17b1.zip | |
IR: pass passSliceOfEmptyStructToFn test
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 8f31bf3b45..79fe3411d4 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -7941,6 +7941,7 @@ static TypeTableEntry *ir_analyze_instruction_slice_type(IrAnalyze *ira, case TypeTableEntryIdBoundFn: case TypeTableEntryIdEnumTag: { + type_ensure_zero_bits_known(ira->codegen, resolved_child_type); TypeTableEntry *result_type = get_slice_type(ira->codegen, resolved_child_type, is_const); ConstExprValue *out_val = ir_build_const_from(ira, &slice_type_instruction->base, child_type->value.depends_on_compile_var); |
