projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63865e1
)
[NFC] Replace not-null and not-isa check with a not-isa_and_nonnull
author
Erich Keane
<erich.keane@intel.com>
Tue, 10 May 2022 20:34:01 +0000
(13:34 -0700)
committer
Erich Keane
<erich.keane@intel.com>
Tue, 10 May 2022 20:34:07 +0000
(13:34 -0700)
clang/lib/Sema/AnalysisBasedWarnings.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/AnalysisBasedWarnings.cpp
b/clang/lib/Sema/AnalysisBasedWarnings.cpp
index
bf282bb
..
164fea6
100644
(file)
--- 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;