Skip to content

Commit eadeabb

Browse files
author
Erich Keane
committed
[NFC] Replace not-null and not-isa check with a not-isa_and_nonnull
1 parent 63865e1 commit eadeabb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/AnalysisBasedWarnings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ static void DiagnoseSwitchLabelsFallthrough(Sema &S, AnalysisDeclContext &AC,
12721272
for (const CFGBlock *B : llvm::reverse(*Cfg)) {
12731273
const Stmt *Label = B->getLabel();
12741274

1275-
if (!Label || !isa<SwitchCase>(Label))
1275+
if (!isa_and_nonnull<SwitchCase>(Label))
12761276
continue;
12771277

12781278
int AnnotatedCnt;

0 commit comments

Comments
 (0)