diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-10-06 01:41:48 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-10-06 01:41:48 -0700 |
| commit | 5432d13bb04cecf213c2753b25cfb1e366cb8026 (patch) | |
| tree | 085af64798bf877e7f02d4f1b5898de356cbdfa2 /compiler/rustc_codegen_gcc/src/errors.rs | |
| parent | 579be69de9f98f56d92b93820eaf7e6b06b517a5 (diff) | |
| download | rust-5432d13bb04cecf213c2753b25cfb1e366cb8026.tar.gz rust-5432d13bb04cecf213c2753b25cfb1e366cb8026.zip | |
Reuse existing `Some`s in `Option::(x)or`
LLVM still has trouble re-using discriminants sometimes when rebuilding a two-variant enum, so when we have the correct variant already built, just use it. That's simpler in LLVM *and* in MIR, so might as well: <https://rust.godbolt.org/z/KhdE8eToW>
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
