Skip to content

Commit 32f59ba

Browse files
committed
Add fixme
1 parent 257d900 commit 32f59ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/constant.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ pub(crate) fn codegen_const_value<'tcx>(
149149
_ => unreachable!(),
150150
};
151151

152+
// FIXME avoid this extra copy to the stack and directly write to the final
153+
// destination
152154
let place = CPlace::new_stack_slot(fx, layout);
153155
place.to_ptr().store(fx, val, MemFlags::trusted());
154156
place.to_cvalue(fx)

0 commit comments

Comments
 (0)