summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/mir
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-10-01 18:22:46 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-10-02 13:42:14 +0000
commit268e02c3875f8d0310a8eeb36007e7d80aa63cbd (patch)
treecdf94a3f3267286ef221c5026e188c6d538502a2 /compiler/rustc_codegen_ssa/src/mir
parent0fe84bc38b19bacb7cb2a5765fb4ffa2106fe9e2 (diff)
downloadrust-268e02c3875f8d0310a8eeb36007e7d80aa63cbd.tar.gz
rust-268e02c3875f8d0310a8eeb36007e7d80aa63cbd.zip
Remove type argument of array_alloca and rename to byte_array_alloca
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/mir')
-rw-r--r--compiler/rustc_codegen_ssa/src/mir/operand.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/operand.rs b/compiler/rustc_codegen_ssa/src/mir/operand.rs
index 37b1e036247..e6ba642a7ed 100644
--- a/compiler/rustc_codegen_ssa/src/mir/operand.rs
+++ b/compiler/rustc_codegen_ssa/src/mir/operand.rs
@@ -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.