about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-03-26 13:40:28 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-03-26 13:40:28 +0000
commit32f59bad5b2ab367d4aaa18a3c4280fd48e92588 (patch)
treefda2676ea65c65f900ca9e19fe940db1214e8750
parent257d9005b4e86078a6cea46e1e0958f0d10b537d (diff)
downloadrust-32f59bad5b2ab367d4aaa18a3c4280fd48e92588.tar.gz
rust-32f59bad5b2ab367d4aaa18a3c4280fd48e92588.zip
Add fixme
-rw-r--r--src/constant.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/constant.rs b/src/constant.rs
index 31278f810e9..b23fef6af2d 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)