This is an archive of the discontinued LLVM Phabricator instance.

[Analyzer] Minor cleanups in StreamChecker
ClosedPublic

Authored by mantognini on Apr 29 2022, 9:12 AM.

Details

Summary

Remove unnecessary conversion to Optional<> and incorrect assumption
that BindExpr can return a null state.

Diff Detail

Event Timeline

mantognini created this revision.Apr 29 2022, 9:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2022, 9:12 AM
mantognini published this revision for review.May 2 2022, 2:20 AM
mantognini added reviewers: NoQ, balazske, Szelethus.

For reference, the modified code was introduced with https://reviews.llvm.org/D80015.

Any feedback is appreciated.

Herald added a project: Restricted Project. · View Herald TranscriptMay 2 2022, 2:20 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
steakhal accepted this revision.May 2 2022, 4:16 AM

Looks great, thanks. Land it.

This revision is now accepted and ready to land.May 2 2022, 4:16 AM
This revision was automatically updated to reflect the committed changes.