This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Cleanup a FIXME in SValBuilder.cpp
ClosedPublic

Authored by vabridgers on Aug 8 2021, 3:32 PM.

Details

Summary

This change follows up on a FIXME submitted with D105974. This change simply let's the reference case fall through to return a concrete 'true'
instead of a nonloc pointer of appropriate length set to NULL.

Diff Detail

Event Timeline

vabridgers created this revision.Aug 8 2021, 3:32 PM
vabridgers requested review of this revision.Aug 8 2021, 3:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2021, 3:32 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
NoQ added a comment.Aug 8 2021, 9:42 PM

Looks correct.

Tests pls? I think that's one of the places where clang_analyzer_dump() is appropriate.

I'll add a test and repost. Thanks!

vabridgers updated this revision to Diff 365310.Aug 9 2021, 4:13 PM

Add missing test case :)

add test case

only need the one test case

NoQ accepted this revision.Aug 10 2021, 12:34 PM

Awesome, thanks!

This revision is now accepted and ready to land.Aug 10 2021, 12:34 PM