diff options
author | Erich Keane <erich.keane@intel.com> | 2022-05-10 13:34:01 -0700 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2022-05-10 13:34:07 -0700 |
commit | eadeabbe10f5096b12e488e7bd8e2292429b5e08 (patch) | |
tree | d514d19f49a1904f3600373e3342ae05f765c5e1 /clang/lib/Sema/AnalysisBasedWarnings.cpp | |
parent | 63865e1fce624422a526f0de603aa87b7dddb49a (diff) | |
download | llvm-eadeabbe10f5096b12e488e7bd8e2292429b5e08.zip llvm-eadeabbe10f5096b12e488e7bd8e2292429b5e08.tar.gz llvm-eadeabbe10f5096b12e488e7bd8e2292429b5e08.tar.bz2 |
[NFC] Replace not-null and not-isa check with a not-isa_and_nonnull
Diffstat (limited to 'clang/lib/Sema/AnalysisBasedWarnings.cpp')
-rw-r--r-- | clang/lib/Sema/AnalysisBasedWarnings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/AnalysisBasedWarnings.cpp b/clang/lib/Sema/AnalysisBasedWarnings.cpp index bf282bb..164fea6 100644 --- a/clang/lib/Sema/AnalysisBasedWarnings.cpp +++ b/clang/lib/Sema/AnalysisBasedWarnings.cpp @@ -1272,7 +1272,7 @@ static void DiagnoseSwitchLabelsFallthrough(Sema &S, AnalysisDeclContext &AC, for (const CFGBlock *B : llvm::reverse(*Cfg)) { const Stmt *Label = B->getLabel(); - if (!Label || !isa<SwitchCase>(Label)) + if (!isa_and_nonnull<SwitchCase>(Label)) continue; int AnnotatedCnt; |