[PATCH] D140104: [clang][dataflow] Remove unused argument in getNullability

Stefan Pintilie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 16 06:47:58 PST 2022


stefanp added inline comments.


================
Comment at: clang/lib/Sema/SemaExpr.cpp:9072
 
   auto GetNullability = [&Ctx](QualType Ty) {
+    Optional<NullabilityKind> Kind = Ty->getNullability();
----------------
merrymeerkat wrote:
> barannikov88 wrote:
> > This now gives a warning
> > `clang/lib/Sema/SemaExpr.cpp:9072:27: warning: lambda capture 'Ctx' is not used [-Wunused-lambda-capture]`
> Thank you for pointing this out! This patch should resolve this: https://reviews.llvm.org/D140211
Thank you for addressing this as it is breaking one of our bots:

https://lab.llvm.org/buildbot/#/builders/36/builds/28473


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140104/new/

https://reviews.llvm.org/D140104



More information about the cfe-commits mailing list