Transfered memcpy and memset to BuilderMethods

This commit is contained in:
Denis Merigoux
2018-09-10 17:59:20 +02:00
committed by Eduard-Mihai Burtescu
parent 3c082a23e8
commit a5aeb8edd6
8 changed files with 112 additions and 101 deletions

View File

@@ -349,7 +349,7 @@ impl OperandValue<&'ll Value> {
// 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, "unsized_tmp", max_align);
base::call_memcpy(bx, lldst, max_align, llptr, min_align, llsize, flags);
bx.memcpy(lldst, max_align, llptr, min_align, llsize, flags);
// Store the allocated region and the extra to the indirect place.
let indirect_operand = OperandValue::Pair(lldst, llextra);