Add fixme

This commit is contained in:
bjorn3 2023-03-26 13:40:28 +00:00
parent 257d9005b4
commit 32f59bad5b

View file

@ -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)