提交 0f6d3637 编写于 作者: R Ralf Jung

explain why we use static alignment in ref-to-place conversion

上级 1349c84a
......@@ -326,6 +326,10 @@ pub fn ref_to_mplace(
let mplace = MemPlace {
ptr: val.to_scalar_ptr()?,
// We could use the run-time alignment here. For now, we do not, because
// the point of tracking the alignment here is to make sure that the *static*
// alignment information emitted with the loads is correct. The run-time
// alignment can only be more restrictive.
align: layout.align.abi,
meta: val.to_meta()?,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册