This is an archive of the discontinued LLVM Phabricator instance.

[Analyzer] Fix an assertion caused by r250237 (PR25392)
AbandonedPublic

Authored by seaneveson on Nov 9 2015, 7:02 AM.

Details

Summary

Fix an assertion which occurs when getCXXThisVal() returns an Unknown SVal and the Analyzer tries to get the corresponding memory region.

This assertion was reported in PR25392. The test case from this Bugzilla has been added.

Regards,
Sean Eveson
SN Systems - Sony Computer Entertainment Group

Diff Detail

Event Timeline

seaneveson updated this revision to Diff 39690.Nov 9 2015, 7:02 AM
seaneveson retitled this revision from to [Analyzer] Fix an assertion caused by r250237 (PR25392).
seaneveson updated this object.
seaneveson updated this object.Nov 9 2015, 7:32 AM

Fix an assertion which occurs when getCXXThisVal() returns an Unknown SVal and the Analyzer tries to get the corresponding memory region.

This assertion was reported in PR25392. The test case from this Bugzilla has been added.

(Forgot to add cfe-commits when creating the review).

dcoughlin edited edge metadata.Nov 9 2015, 11:57 AM

Hi Sean, I just committed a slightly different fix that I already had prepared (r252506). That fix also handles the case when the ThisVal is a loc that can't be converted to a memory region.

Thanks for looking into this and my apologies for the duplication of effort!

seaneveson abandoned this revision.Nov 10 2015, 12:39 AM

Fixed by r252506. Thanks Devin.