This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Update StructValue child when assigning a value
ClosedPublic

Authored by sgatev on Feb 23 2022, 7:41 AM.

Details

Summary

When assigning a value to a storage location of a struct member we
need to also update the value in the corresponding StructValue.

This is part of the implementation of the dataflow analysis framework.
See "[RFC] A dataflow analysis framework for Clang AST" on cfe-dev.

Diff Detail

Event Timeline

sgatev created this revision.Feb 23 2022, 7:41 AM
sgatev requested review of this revision.Feb 23 2022, 7:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2022, 7:41 AM
ymandel accepted this revision.Feb 23 2022, 7:44 AM
This revision is now accepted and ready to land.Feb 23 2022, 7:44 AM
xazax.hun accepted this revision.Feb 23 2022, 8:36 AM

This change looks good to me. Just an interesting fact, I think this problem is completely sidestepped in the access path model: https://www.youtube.com/watch?v=LTRykVVDfgE&list=PLamk8lFsMyPXrUIQm5naAQ08aK2ctv6gE&index=19

This revision was landed with ongoing or failed builds.Feb 24 2022, 8:43 AM
This revision was automatically updated to reflect the committed changes.