diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2017-07-13 17:17:08 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2017-07-13 17:17:08 +0200 |
| commit | ef8804ba277b055fdc3e6d148e680e3c1b597ad8 (patch) | |
| tree | ecc366eb533e6683469a237bc2270de11e5cc8fe /src/rustllvm/RustWrapper.cpp | |
| parent | b2c0707872082c890f332178f59fd02eea5b98f3 (diff) | |
| download | rust-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
