We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3585617 commit 272eb17Copy full SHA for 272eb17
clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLambdaCapturesChecker.cpp
@@ -72,8 +72,10 @@ class UncountedLambdaCapturesChecker
72
auto *VD = dyn_cast_or_null<VarDecl>(DRE->getDecl());
73
if (!VD)
74
return true;
75
- auto *Init = VD->getInit()->IgnoreParenCasts();
76
- auto *L = dyn_cast_or_null<LambdaExpr>(Init);
+ auto *Init = VD->getInit();
+ if (!Init)
77
+ return true;
78
+ auto *L = dyn_cast_or_null<LambdaExpr>(Init->IgnoreParenCasts());
79
if (!L)
80
81
Checker->visitLambdaExpr(L, shouldCheckThis());
0 commit comments