From 25a5fc32fe68f911f7ac34e513e98cacb0ca17b1 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 28 Dec 2016 01:15:09 -0500 Subject: IR: pass passSliceOfEmptyStructToFn test --- src/ir.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ir.cpp') 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); -- cgit v1.2.3