This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Relax constraints on const qualified regions
ClosedPublic

Authored by steakhal on Jun 14 2022, 9:37 AM.

Details

Summary

The arithmetic restriction seems to be artificial.
The comment below seems to be stale.
Thus, we remove both.

Depends on D127306.

Diff Detail

Event Timeline

steakhal created this revision.Jun 14 2022, 9:37 AM
Herald added a project: Restricted Project. · View Herald Transcript
steakhal requested review of this revision.Jun 14 2022, 9:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 9:37 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
martong accepted this revision.Jun 15 2022, 12:50 AM

LGTM.

This revision is now accepted and ready to land.Jun 15 2022, 12:50 AM

According to my measurements, this change has minor effects (1 new, 20 disappeared reports).
The interesting reports had really long bug paths, so I think there were some default eval called functions down the line which made this patch surface this way.

This revision was landed with ongoing or failed builds.Jun 15 2022, 8:08 AM
This revision was automatically updated to reflect the committed changes.