about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-22 13:08:19 +0000
committerbors <bors@rust-lang.org>2024-01-22 13:08:19 +0000
commit93955e094acdaf03ddb42f9fd320bc9018912093 (patch)
tree906520450b79b0a87842f78780d370cb0a7a790a /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parenta417366d581ee8a7d6cc1d8d8c5cd4a1750df834 (diff)
parenteb42f3e70309eec46e266f74598334e576d6583e (diff)
downloadrust-93955e094acdaf03ddb42f9fd320bc9018912093.tar.gz
rust-93955e094acdaf03ddb42f9fd320bc9018912093.zip
Auto merge of #120080 - cuviper:128-align-packed, r=nikic
Pack u128 in the compiler to mitigate new alignment

This is based on #116672, adding a new `#[repr(packed(8))]` wrapper on `u128` to avoid changing any of the compiler's size assertions. This is needed in two places:

* `SwitchTargets`, otherwise its `SmallVec<[u128; 1]>` gets padded up to 32 bytes.
* `LitKind::Int`, so that entire `enum` can stay 24 bytes.
  * This change definitely has far-reaching effects though, since it's public.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions