We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f529c0a commit 948b206Copy full SHA for 948b206
clang/unittests/StaticAnalyzer/ParamRegionTest.cpp
@@ -19,9 +19,9 @@ class ParamRegionTestConsumer : public ExprEngineConsumer {
19
void checkForSameParamRegions(MemRegionManager &MRMgr,
20
const StackFrameContext *SFC,
21
const ParmVarDecl *PVD) {
22
- assert(llvm::all_of(PVD->redecls(), [](const clang::VarDecl *D2) {
+ assert(llvm::all_of(PVD->redecls(), [&](const clang::VarDecl *D2) {
23
return MRMgr.getVarRegion(PVD, SFC) ==
24
- MRMgr.getVarRegion(cast<ParmVarDecl>(D2), SFC)
+ MRMgr.getVarRegion(cast<ParmVarDecl>(D2), SFC);
25
}));
26
}
27
0 commit comments