Nonnull attribute can be applied to non-pointers. This caused assertion
failures in NonNullParamChecker when we tried to *assume* such parameters
to be non-zero.
rdar://problem/63150074
Paths
| Differential D79843
[analyzer] Fix crash for non-pointers annotated as nonnull ClosedPublic Authored by vsavchenko on May 13 2020, 3:05 AM.
Details Summary Nonnull attribute can be applied to non-pointers. This caused assertion rdar://problem/63150074
Diff Detail
Event TimelineHerald added subscribers: cfe-commits, ASDenysPetrov, martong and 9 others. · View Herald Transcript This revision is now accepted and ready to land.May 13 2020, 3:16 AM Closed by commit rG855f0ce79bf3: [analyzer] Fix crash for non-pointers annotated as nonnull (authored by vsavchenko). · Explain WhyMay 13 2020, 3:43 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 263662 clang/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp
clang/test/Analysis/UserNullabilityAnnotations.m
|