This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Replace initValueInStorageLocation with createValue
ClosedPublic

Authored by sgatev on Jan 17 2022, 7:23 AM.

Details

Summary

Since Environment's setValue method already does part of the work that
initValueInStorageLocation does, we can factor out a new createValue
method to reduce the duplication.

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.Jan 17 2022, 7:23 AM
sgatev requested review of this revision.Jan 17 2022, 7:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2022, 7:23 AM
ymandel accepted this revision.Jan 17 2022, 7:29 AM
This revision is now accepted and ready to land.Jan 17 2022, 7:29 AM
xazax.hun accepted this revision.Jan 17 2022, 7:48 AM
This revision was landed with ongoing or failed builds.Jan 17 2022, 11:14 PM
This revision was automatically updated to reflect the committed changes.