This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] ExprEngine: Do not 'bindLoc' twice for testing purposes
AbandonedPublic

Authored by Charusso on Jun 3 2020, 1:29 AM.

Details

Reviewers
NoQ
Summary

As a side effect of D63720 we do not need to test whether we cannot
bindLoc a value since we have already escaped it in
ExprEngine::VisitBinaryOperator() and other places.

Diff Detail

Event Timeline

Charusso created this revision.Jun 3 2020, 1:29 AM

May this is somewhat hand-waving, but this double-binding does not seem useful.

NoQ added a comment.Jun 3 2020, 4:40 AM

I suspect that there are a lot more potential drops of symbols that this branch catches. Even if there are currently no tests for them, i'd rather keep it until we completely get rid of unknown values.

I also doubt D63720 had anything to do with this code. In D63720 the information is lost much earlier than the bind happens.

Charusso abandoned this revision.Jun 3 2020, 5:25 AM

Okay! Thanks for the review.