[PATCH] D154221: [analyzer] Fix false negative when pass implicit cast nil to nonnull

tripleCC via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 4 08:31:57 PDT 2023


tripleCC added inline comments.


================
Comment at: clang/test/Analysis/nullability-arc.mm:25
 
   [self foo:nil];
+  // expected-warning at -1{{nil passed to a callee that requires a non-null 1st parameter}}
----------------
I think there should be a warning when we call the foo: method


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154221



More information about the cfe-commits mailing list