aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorsongruiwang <songruiwang@kuaishou.com>2023-07-06 22:34:10 +0800
committersongruiwang <songruiwang@kuaishou.com>2023-07-06 22:36:51 +0800
commitb22a5d46179b0ec2d5350c078dc349f09177b9ed (patch)
tree70c633915c953d1a4b85ebe29ed0960b7f61e64f /llvm/tools/llvm-objdump/llvm-objdump.cpp
parentab49d3055723348b1653779129edbe0866b6b1cf (diff)
downloadllvm-b22a5d46179b0ec2d5350c078dc349f09177b9ed.zip
llvm-b22a5d46179b0ec2d5350c078dc349f09177b9ed.tar.gz
llvm-b22a5d46179b0ec2d5350c078dc349f09177b9ed.tar.bz2
[analyzer] Fix false negative when pass implicit cast nil to nonnull
We should look through implicit casts before determining the type of the arguments, and only allow explicit cast to _Nonnull to suppress warning ``` void foo(NSString *_Nonnull); foo((NSString * _Nonnull)nil); // no-warning id obj = nil; foo(obj); // should warning here (implicit cast id to NSString *_Nonnull) ``` Reviewed By: xazax.hun, steakhal Differential Revision: https://reviews.llvm.org/D154221
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions