[NFC] Replace not-null and not-isa check with a not-isa_and_nonnull

This commit is contained in:
Erich Keane 2022-05-10 13:34:01 -07:00
parent 63865e1fce
commit eadeabbe10
1 changed files with 1 additions and 1 deletions

View File

@ -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;