rust/compiler/rustc_codegen_ssa
Matthias Krüger 2b6ae95d3f
Rollup merge of #122164 - beetrees:uefi-argv-align, r=workingjubilee
Fix misaligned loads when loading UEFI arg pointers

Currently, the two UEFI argument pointers are stored in an `alloca` of alignment 1, a pointer to which is then passed as `argv`. However, [the library code](9c3ad802d9/library/std/src/sys/pal/uefi/mod.rs (L60-L61)) treats `argv` as a pointer to an array of pointers and dereferences it as such, meaning that it presumes the `alloca` is aligned to at least the alignment of a pointer. This PR fixes this mismatch by aligning the `alloca` to the alignment of a pointer.

This PR also changed the `gep` to use the new `inbounds_ptradd` method.
2024-03-08 21:02:01 +01:00
..
src Rollup merge of #122164 - beetrees:uefi-argv-align, r=workingjubilee 2024-03-08 21:02:01 +01:00
Cargo.toml Add arm64ec-pc-windows-msvc target 2024-03-06 17:49:37 -08:00
messages.ftl check that simd_insert/extract indices are in-bounds 2024-02-23 19:43:59 +01:00
README.md

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.