Add fixme
This commit is contained in:
parent
257d9005b4
commit
32f59bad5b
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue