| ... | @@ -16794,7 +16794,9 @@ static IrInstruction *ir_analyze_instruction_slice_type(IrAnalyze *ira, | ... | @@ -16794,7 +16794,9 @@ static IrInstruction *ir_analyze_instruction_slice_type(IrAnalyze *ira, |
| 16794 | case ZigTypeIdPromise: | 16794 | case ZigTypeIdPromise: |
| 16795 | case ZigTypeIdVector: | 16795 | case ZigTypeIdVector: |
| 16796 | { | 16796 | { |
| 16797 | if ((err = type_resolve(ira->codegen, child_type, ResolveStatusZeroBitsKnown))) | 16797 | ResolveStatus needed_status = (align_bytes == 0) ? |
| | 16798 | ResolveStatusZeroBitsKnown : ResolveStatusAlignmentKnown; |
| | 16799 | if ((err = type_resolve(ira->codegen, child_type, needed_status))) |
| 16798 | return ira->codegen->invalid_instruction; | 16800 | return ira->codegen->invalid_instruction; |
| 16799 | ZigType *slice_ptr_type = get_pointer_to_type_extra(ira->codegen, child_type, | 16801 | ZigType *slice_ptr_type = get_pointer_to_type_extra(ira->codegen, child_type, |
| 16800 | is_const, is_volatile, PtrLenUnknown, align_bytes, 0, 0, is_allow_zero); | 16802 | is_const, is_volatile, PtrLenUnknown, align_bytes, 0, 0, is_allow_zero); |