From aca05cf6038278d7774311720534437f0ec42bc2 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 12 Aug 2022 12:48:40 +0200 Subject: [PATCH] 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. --- src/value_and_place.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/value_and_place.rs b/src/value_and_place.rs index e48d095d139..9e945d83621 100644 --- a/src/value_and_place.rs +++ b/src/value_and_place.rs @@ -614,7 +614,7 @@ fn transmute_value<'tcx>( dst_align, src_align, true, - MemFlags::trusted(), + flags, ); } CValueInner::ByRef(_, Some(_)) => todo!(),