[clang] 948b206 - Add missing lambda capture from rGf529c0a8a149.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 11 05:57:53 PDT 2020


Author: Simon Pilgrim
Date: 2020-06-11T13:57:39+01:00
New Revision: 948b206fc236502caa20e51cf39b9d4d0fda00b6

URL: https://github.com/llvm/llvm-project/commit/948b206fc236502caa20e51cf39b9d4d0fda00b6
DIFF: https://github.com/llvm/llvm-project/commit/948b206fc236502caa20e51cf39b9d4d0fda00b6.diff

LOG: Add missing lambda capture from rGf529c0a8a149.

Added: 
    

Modified: 
    clang/unittests/StaticAnalyzer/ParamRegionTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/StaticAnalyzer/ParamRegionTest.cpp b/clang/unittests/StaticAnalyzer/ParamRegionTest.cpp
index 52789fdf5b9d..7ec032a7beae 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<ParmVarDecl>(D2), SFC)
+             MRMgr.getVarRegion(cast<ParmVarDecl>(D2), SFC);
     }));
   }
 


        


More information about the cfe-commits mailing list