This is an archive of the discontinued LLVM Phabricator instance.

[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
failures in NonNullParamChecker when we tried to *assume* such parameters
to be non-zero.

rdar://problem/63150074

Diff Detail

Event Timeline

vsavchenko created this revision.May 13 2020, 3:05 AM
NoQ accepted this revision.May 13 2020, 3:16 AM

Perfect, thanks!

This revision is now accepted and ready to land.May 13 2020, 3:16 AM
This revision was automatically updated to reflect the committed changes.