diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-03-01 10:57:46 -0800 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-03-11 20:29:26 -0800 |
| commit | f6a57c195519d1e3e1f2f84b5793b2449f6c1625 (patch) | |
| tree | ebe6f2ba16bf6775e7ef165ad446ca56e940c250 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 5423745db8b434fcde54888b35f518f00cce00e4 (diff) | |
| download | rust-f6a57c195519d1e3e1f2f84b5793b2449f6c1625.tar.gz rust-f6a57c195519d1e3e1f2f84b5793b2449f6c1625.zip | |
Move `Option::as_slice` to an always-sound implementation
This approach depends on CSE to not have any branches or selects when the guessed offset is correct -- which it always will be right now -- but to also be *sound* (just less efficient) if the layout algorithms change such that the guess is incorrect.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
