diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-01 09:55:38 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-02 06:52:09 +1100 |
| commit | 9bdac177fc2ba94af3529f511a2db6ab2198d100 (patch) | |
| tree | ec239c25857f64a077166091de490602a1372487 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 0b4a81a4ef637117b365c3c51a5326f1c4a90ded (diff) | |
| download | rust-9bdac177fc2ba94af3529f511a2db6ab2198d100.tar.gz rust-9bdac177fc2ba94af3529f511a2db6ab2198d100.zip | |
Simplify control flow in `AstValidator::visit_item`.
Currently some code paths return early, while others fall through to the `visit::walk_item` call, which is easy to overlook (I did, at first), even with the explanatory comments. This commit removes the early returns and moves the `visit::walk_item` calls up where necessary. This makes the function easier to read and slightly shorter.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
