diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-30 16:10:20 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-30 20:42:11 +1100 |
| commit | be8fd8b7d028c50c66b6300aa1bf692afe2e231c (patch) | |
| tree | 5fea038bede346d2e73daac80aacfce6868df135 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 95b0088e7c7a781bcd77a274ec73d7fb4f9074a2 (diff) | |
| download | rust-be8fd8b7d028c50c66b6300aa1bf692afe2e231c.tar.gz rust-be8fd8b7d028c50c66b6300aa1bf692afe2e231c.zip | |
Streamline `collect_crate_types`.
- The early return can be right at the top. - The control flow is simplified with `if let`. - The `collect` isn't necessary. - The "Unconditionally" comment is erroneously duplicated from `check_attr_crate_type`, and can be removed.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
