[clang] [llvm] remove redundant uses of `isa` caught by clang-tidy (NFC) (PR #192813)
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 19 04:16:10 PDT 2026
================
@@ -66,7 +66,7 @@ GetCC1Arguments(DiagnosticsEngine *Diagnostics,
// We expect to get back exactly one Command job, if we didn't something
// failed. Extract that job from the Compilation.
const driver::JobList &Jobs = Compilation->getJobs();
- if (!Jobs.size() || !isa<driver::Command>(*Jobs.begin()))
----------------
nikic wrote:
If this is redundant, should also drop the `cast` a few lines below?
https://github.com/llvm/llvm-project/pull/192813
More information about the cfe-commits
mailing list