Add missing lambda capture from rGf529c0a8a149.

This commit is contained in:
Simon Pilgrim 2020-06-11 13:57:39 +01:00
parent f529c0a8a1
commit 948b206fc2
1 changed files with 2 additions and 2 deletions

View File

@ -19,9 +19,9 @@ class ParamRegionTestConsumer : public ExprEngineConsumer {
void checkForSameParamRegions(MemRegionManager &MRMgr,
const StackFrameContext *SFC,
const ParmVarDecl *PVD) {
assert(llvm::all_of(PVD->redecls(), [](const clang::VarDecl *D2) {
assert(llvm::all_of(PVD->redecls(), [&](const clang::VarDecl *D2) {
return MRMgr.getVarRegion(PVD, SFC) ==
MRMgr.getVarRegion(cast<ParmVarDecl>(D2), SFC)
MRMgr.getVarRegion(cast<ParmVarDecl>(D2), SFC);
}));
}