about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-10-30 16:10:20 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-10-30 20:42:11 +1100
commitbe8fd8b7d028c50c66b6300aa1bf692afe2e231c (patch)
tree5fea038bede346d2e73daac80aacfce6868df135 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent95b0088e7c7a781bcd77a274ec73d7fb4f9074a2 (diff)
downloadrust-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