This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Make `Value` and `StorageLocation` non-copyable
ClosedPublic

Authored by sgatev on Jun 15 2022, 8:12 AM.

Details

Summary

This makes it harder to misuse APIs that return references by
accidentally copying the results which could happen when assigning the
them to variables declared as auto.

Diff Detail

Event Timeline

sgatev created this revision.Jun 15 2022, 8:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2022, 8:12 AM
sgatev requested review of this revision.Jun 15 2022, 8:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2022, 8:12 AM
ymandel accepted this revision.Jun 15 2022, 8:29 AM

Thanks!

This revision is now accepted and ready to land.Jun 15 2022, 8:29 AM
xazax.hun accepted this revision.Jun 15 2022, 8:55 AM
gribozavr2 accepted this revision.Jun 15 2022, 9:15 AM
This revision was landed with ongoing or failed builds.Jun 15 2022, 9:15 AM
This revision was automatically updated to reflect the committed changes.