emit "align 1" metadata on loads/stores of packed structs
According to the LLVM reference: > A value of 0 or an omitted align argument means that the operation has the ABI alignment for the target. So loads/stores of fields of packed structs need to have their align set to 1. Implement that by tracking the alignment of `LvalueRef`s. Fixes #39376.
Showing
src/test/codegen/packed.rs
0 → 100644
想要评论请 注册 或 登录