From 32f59bad5b2ab367d4aaa18a3c4280fd48e92588 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 26 Mar 2023 13:40:28 +0000 Subject: [PATCH] Add fixme --- src/constant.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/constant.rs b/src/constant.rs index 31278f810e911..b23fef6af2dcc 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -149,6 +149,8 @@ pub(crate) fn codegen_const_value<'tcx>( _ => unreachable!(), }; + // FIXME avoid this extra copy to the stack and directly write to the final + // destination let place = CPlace::new_stack_slot(fx, layout); place.to_ptr().store(fx, val, MemFlags::trusted()); place.to_cvalue(fx)