Skip to content

Commit c05ba25

Browse files
committed
Fix test failures
1 parent 895d0e9 commit c05ba25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefLambdaCapturesChecker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,10 @@ class RawPtrRefLambdaCapturesChecker
285285
auto *VD = dyn_cast<VarDecl>(ValueDecl);
286286
if (!VD)
287287
return false;
288-
auto *Init = VD->getInit()->IgnoreParenCasts();
288+
auto *Init = VD->getInit();
289289
if (!Init)
290290
return false;
291-
const Expr *Arg = Init;
291+
const Expr *Arg = Init->IgnoreParenCasts();
292292
do {
293293
if (auto *BTE = dyn_cast<CXXBindTemporaryExpr>(Arg))
294294
Arg = BTE->getSubExpr()->IgnoreParenCasts();

0 commit comments

Comments
 (0)