diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-03-04 19:10:36 -0800 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-03-05 15:15:22 -0800 |
| commit | 3554036280525cec34103a8f66049b0881b14d27 (patch) | |
| tree | 3cc8a7e99af6780c6e12b00b84be055fa8c6f1e1 /compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp | |
| parent | 7820b62d20bc548096d4632a3487987308cb4b5d (diff) | |
| download | rust-3554036280525cec34103a8f66049b0881b14d27.tar.gz rust-3554036280525cec34103a8f66049b0881b14d27.zip | |
Use `nuw` when calculating slice lengths from `Range`s
An `assume` would definitely not be worth it, but since the flag is almost free we might as well tell LLVM this, especially on `_unchecked` calls where there's no obvious way for it to deduce it. (Today neither safe nor unsafe indexing gets it: <https://rust.godbolt.org/z/G1jYT548s>)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
