We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1349c84 commit 0f6d363Copy full SHA for 0f6d363
src/librustc_mir/interpret/place.rs
@@ -326,6 +326,10 @@ where
326
327
let mplace = MemPlace {
328
ptr: val.to_scalar_ptr()?,
329
+ // We could use the run-time alignment here. For now, we do not, because
330
+ // the point of tracking the alignment here is to make sure that the *static*
331
+ // alignment information emitted with the loads is correct. The run-time
332
+ // alignment can only be more restrictive.
333
align: layout.align.abi,
334
meta: val.to_meta()?,
335
};
0 commit comments