[clang] f86cdb4 - [clang][dataflow] Remove unused lambda capture

Krasimir Georgiev via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 16 06:40:29 PST 2022


Author: Dani Ferreira Franco Moura
Date: 2022-12-16T15:39:31+01:00
New Revision: f86cdb4853618603b8889dfeb932fd4ef8efd010

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

LOG: [clang][dataflow] Remove unused lambda capture

Reviewed By: krasimir

Differential Revision: https://reviews.llvm.org/D140211

Added: 
    

Modified: 
    clang/lib/Sema/SemaExpr.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index ccb1e3e21cae..94f52004cf6c 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -9069,7 +9069,7 @@ static QualType computeConditionalNullability(QualType ResTy, bool IsBin,
   if (!ResTy->isAnyPointerType())
     return ResTy;
 
-  auto GetNullability = [&Ctx](QualType Ty) {
+  auto GetNullability = [](QualType Ty) {
     Optional<NullabilityKind> Kind = Ty->getNullability();
     if (Kind) {
       // For our purposes, treat _Nullable_result as _Nullable.


        


More information about the cfe-commits mailing list