about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2017-07-13 17:17:08 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2017-07-13 17:17:08 +0200
commitef8804ba277b055fdc3e6d148e680e3c1b597ad8 (patch)
treeecc366eb533e6683469a237bc2270de11e5cc8fe /src/rustllvm/RustWrapper.cpp
parentb2c0707872082c890f332178f59fd02eea5b98f3 (diff)
downloadrust-ef8804ba277b055fdc3e6d148e680e3c1b597ad8.tar.gz
rust-ef8804ba277b055fdc3e6d148e680e3c1b597ad8.zip
Add precondition to `Layout` that the `align` fit in a u32.
This precondition takes the form of a behavorial change in
`Layout::from_size_align` (so it returns `None` if the `align` is too
large) and a new requirement for safe usage of
`Layout::from_size_align_unchecked`.

Fix #30170.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions