about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2023-03-01 10:57:46 -0800
committerScott McMurray <scottmcm@users.noreply.github.com>2023-03-11 20:29:26 -0800
commitf6a57c195519d1e3e1f2f84b5793b2449f6c1625 (patch)
treeebe6f2ba16bf6775e7ef165ad446ca56e940c250 /compiler/rustc_codegen_llvm/src/errors.rs
parent5423745db8b434fcde54888b35f518f00cce00e4 (diff)
downloadrust-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