Skip to content

Commit 948b206

Browse files
committed
Add missing lambda capture from rGf529c0a8a149.
1 parent f529c0a commit 948b206

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/unittests/StaticAnalyzer/ParamRegionTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class ParamRegionTestConsumer : public ExprEngineConsumer {
1919
void checkForSameParamRegions(MemRegionManager &MRMgr,
2020
const StackFrameContext *SFC,
2121
const ParmVarDecl *PVD) {
22-
assert(llvm::all_of(PVD->redecls(), [](const clang::VarDecl *D2) {
22+
assert(llvm::all_of(PVD->redecls(), [&](const clang::VarDecl *D2) {
2323
return MRMgr.getVarRegion(PVD, SFC) ==
24-
MRMgr.getVarRegion(cast<ParmVarDecl>(D2), SFC)
24+
MRMgr.getVarRegion(cast<ParmVarDecl>(D2), SFC);
2525
}));
2626
}
2727

0 commit comments

Comments
 (0)