Skip to content

Commit 7869ff9

Browse files
committed
Remove the dead code
1 parent 0b90a8b commit 7869ff9

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,7 @@ class RawPtrRefLambdaCapturesChecker
236236
updateIgnoreList();
237237
return Lambda;
238238
}
239-
TempExpr = dyn_cast<CXXBindTemporaryExpr>(Init->IgnoreParenCasts());
240-
if (!TempExpr)
241-
return nullptr;
242-
auto *Lambda = dyn_cast_or_null<LambdaExpr>(TempExpr->getSubExpr());
243-
if (!Lambda)
244-
return nullptr;
245-
DeclRefExprsToIgnore.insert(DRE);
246-
updateIgnoreList();
247-
return Lambda;
239+
return nullptr;
248240
}
249241

250242
void checkCalleeLambda(CallExpr *CE) {

0 commit comments

Comments
 (0)