| ... | ... | @@ -13094,7 +13094,7 @@ fn zirArrayMul(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai |
| 13094 | 13094 | const val = v: { |
| 13095 | 13095 | // Optimization for the common pattern of a single element repeated N times, such |
| 13096 | 13096 | // as zero-filling a byte array. |
| 13097 | | if (lhs_len == 1) { |
| 13097 | if (lhs_len == 1 and lhs_info.sentinel == null) { |
| 13098 | 13098 | const elem_val = try lhs_sub_val.elemValue(mod, 0); |
| 13099 | 13099 | break :v try mod.intern(.{ .aggregate = .{ |
| 13100 | 13100 | .ty = result_ty.toIntern(), |