forked from OSchip/llvm-project
[NFC] Replace not-null and not-isa check with a not-isa_and_nonnull
This commit is contained in:
parent
63865e1fce
commit
eadeabbe10
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue