Fix alignment flag for emit_small_memory_copy

Do not unconditionally pass the "aligned" MemFlag when calling
emit_small_memory_copy.  Instead, allow the back end to rely on
the alignment info passed separately to this routine.
This commit is contained in:
Ulrich Weigand 2022-08-12 12:48:40 +02:00
parent fa6480e43d
commit aca05cf603

View File

@ -614,7 +614,7 @@ impl<'tcx> CPlace<'tcx> {
dst_align, dst_align,
src_align, src_align,
true, true,
MemFlags::trusted(), flags,
); );
} }
CValueInner::ByRef(_, Some(_)) => todo!(), CValueInner::ByRef(_, Some(_)) => todo!(),