diff options
| author | bors <bors@rust-lang.org> | 2023-03-07 13:17:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-03-07 13:17:59 +0000 |
| commit | 160c2ebeca7b4e616962134f230de754fa5433b1 (patch) | |
| tree | 462d6f62ac5d604e66ca4f66876224bc706894ba /compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp | |
| parent | 0a3b557d528dd7c8a88ceca6f7dc0699b89a3ef4 (diff) | |
| parent | 3554036280525cec34103a8f66049b0881b14d27 (diff) | |
| download | rust-160c2ebeca7b4e616962134f230de754fa5433b1.tar.gz rust-160c2ebeca7b4e616962134f230de754fa5433b1.zip | |
Auto merge of #108763 - scottmcm:indexing-nuw-lengths, r=cuviper
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
