This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Various refactorings to UncheckedOptionalAccessModel.
ClosedPublic

Authored by mboehme on Jul 6 2023, 4:49 AM.

Details

Summary

These are intended to ease an upcoming change that will eliminate the duplication between AggregateStorageLocation and StructValue (see https://discourse.llvm.org/t/70086 for details), but many of the changes also have value in their own right.

Depends On D154586

Diff Detail

Event Timeline

mboehme created this revision.Jul 6 2023, 4:49 AM
Herald added a project: Restricted Project. · View Herald Transcript
mboehme requested review of this revision.Jul 6 2023, 4:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2023, 4:49 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
mboehme edited the summary of this revision. (Show Details)Jul 6 2023, 4:50 AM
mboehme added reviewers: ymandel, xazax.hun.
mboehme added inline comments.
clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
258

Moved Env parameter to the end for consistency with the newly added overload (below); Env is just a "context" parameter, HasValueVal is the more important parameter and should therefore come first.

ymandel accepted this revision.Jul 6 2023, 5:45 AM

Nice! I don't think you need a second review for this one, since it's just superficial (if important!) refactoring.

This revision is now accepted and ready to land.Jul 6 2023, 5:45 AM
gribozavr2 accepted this revision.Jul 8 2023, 9:21 PM

libcxx and clangd failures look unrelated

This revision was landed with ongoing or failed builds.Jul 9 2023, 11:46 PM
This revision was automatically updated to reflect the committed changes.