This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Avoid querying this-pointers for static-methods.
ClosedPublic

Authored by mattd on Aug 7 2018, 2:57 PM.

Details

Summary

The loop-widening code processes c++ methods looking for this pointers. In
the case of static methods (which do not have this pointers), an assertion
was triggering. This patch avoids trying to process this pointers for
static methods, and thus avoids triggering the assertion .

Diff Detail

Repository
rC Clang

Event Timeline

mattd created this revision.Aug 7 2018, 2:57 PM
george.karpenkov added a subscriber: NoQ.

Looks reasonable. @NoQ any further comments?

NoQ accepted this revision.Aug 7 2018, 3:13 PM

Yup, fair enough.

This revision is now accepted and ready to land.Aug 7 2018, 3:13 PM
This revision was automatically updated to reflect the committed changes.