]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_codegen_ssa/src/mir/operand.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / compiler / rustc_codegen_ssa / src / mir / operand.rs
index 37b1e036247bfcd8c4c2863c87bcd6385406816d..e6ba642a7ed0e969a1eb3d3e7bdc0ad6fc13d361 100644 (file)
@@ -352,7 +352,7 @@ impl<'a, 'tcx, V: CodegenObject> OperandValue<V> {
 
         // Allocate an appropriate region on the stack, and copy the value into it
         let (llsize, _) = glue::size_and_align_of_dst(bx, unsized_ty, Some(llextra));
-        let lldst = bx.array_alloca(bx.cx().type_i8(), llsize, max_align);
+        let lldst = bx.byte_array_alloca(llsize, max_align);
         bx.memcpy(lldst, max_align, llptr, min_align, llsize, flags);
 
         // Store the allocated region and the extra to the indirect place.