| ... | ... | @@ -5434,10 +5434,11 @@ pub const FuncGen = struct { |
| 5434 | 5434 | const llvm_usize = try self.dg.lowerType(Type.usize); |
| 5435 | 5435 | const len = llvm_usize.constInt(array_ty.arrayLen(), .False); |
| 5436 | 5436 | const slice_llvm_ty = try self.dg.lowerType(self.air.typeOfIndex(inst)); |
| 5437 | const operand = try self.resolveInst(ty_op.operand); |
| 5437 | 5438 | if (!array_ty.hasRuntimeBitsIgnoreComptime()) { |
| 5438 | | return self.builder.buildInsertValue(slice_llvm_ty.getUndef(), len, 1, ""); |
| 5439 | const partial = self.builder.buildInsertValue(slice_llvm_ty.getUndef(), operand, 0, ""); |
| 5440 | return self.builder.buildInsertValue(partial, len, 1, ""); |
| 5439 | 5441 | } |
| 5440 | | const operand = try self.resolveInst(ty_op.operand); |
| 5441 | 5442 | const indices: [2]*llvm.Value = .{ |
| 5442 | 5443 | llvm_usize.constNull(), llvm_usize.constNull(), |
| 5443 | 5444 | }; |