From 948b206fc236502caa20e51cf39b9d4d0fda00b6 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 11 Jun 2020 13:57:39 +0100 Subject: [PATCH] Add missing lambda capture from rGf529c0a8a149. --- clang/unittests/StaticAnalyzer/ParamRegionTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/unittests/StaticAnalyzer/ParamRegionTest.cpp b/clang/unittests/StaticAnalyzer/ParamRegionTest.cpp index 52789fd..7ec032a 100644 --- a/clang/unittests/StaticAnalyzer/ParamRegionTest.cpp +++ b/clang/unittests/StaticAnalyzer/ParamRegionTest.cpp @@ -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(D2), SFC) + MRMgr.getVarRegion(cast(D2), SFC); })); } -- 2.7.4