forked from OSchip/llvm-project
Add missing lambda capture from rGf529c0a8a149.
This commit is contained in:
parent
f529c0a8a1
commit
948b206fc2
|
@ -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);
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue