Skip to content

Commit

Permalink
Add fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Mar 26, 2023
1 parent 257d900 commit 32f59ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 32f59ba

Please sign in to comment.