diff options
| author | LingMan <LingMan@users.noreply.github.com> | 2021-01-03 09:19:52 +0100 |
|---|---|---|
| committer | LingMan <LingMan@users.noreply.github.com> | 2021-01-03 10:07:22 +0100 |
| commit | af7134e7de793ea3bba30bc350daef76ea9de755 (patch) | |
| tree | 3bc2a8de7f4b08dfc9aba4f90d818591f1cadbfb /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 18d855b8f6358d34dbee033faccc82b8c849a4b3 (diff) | |
| download | rust-af7134e7de793ea3bba30bc350daef76ea9de755.tar.gz rust-af7134e7de793ea3bba30bc350daef76ea9de755.zip | |
Move variable into the only branch where it is relevant
At the `if` branch `filter` (the `let` binding) is `None` iff `filter` (the parameter) was `None`. We can branch on the parameter, move the binding into the `if`, and the complexity of handling `Option<Option<_>` largely dissolves.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
