diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -9069,7 +9069,7 @@ if (!ResTy->isAnyPointerType()) return ResTy; - auto GetNullability = [&Ctx](QualType Ty) { + auto GetNullability = [](QualType Ty) { Optional Kind = Ty->getNullability(); if (Kind) { // For our purposes, treat _Nullable_result as _Nullable.