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 895d0e9 commit c05ba25Copy full SHA for c05ba25
clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefLambdaCapturesChecker.cpp
@@ -285,10 +285,10 @@ class RawPtrRefLambdaCapturesChecker
285
auto *VD = dyn_cast<VarDecl>(ValueDecl);
286
if (!VD)
287
return false;
288
- auto *Init = VD->getInit()->IgnoreParenCasts();
+ auto *Init = VD->getInit();
289
if (!Init)
290
291
- const Expr *Arg = Init;
+ const Expr *Arg = Init->IgnoreParenCasts();
292
do {
293
if (auto *BTE = dyn_cast<CXXBindTemporaryExpr>(Arg))
294
Arg = BTE->getSubExpr()->IgnoreParenCasts();
0 commit comments