The argument and return value of std::forward is always a reference, so we can simply forward the storage location.
Depends On D155075
Paths
| Differential D155202
[clang][dataflow] Simplify implementation of `transferStdForwardCall()` in optional check. ClosedPublic Authored by mboehme on Jul 13 2023, 7:23 AM.
Details Summary The argument and return value of std::forward is always a reference, so we can simply forward the storage location. Depends On D155075
Diff Detail
Event Timelinemboehme added a child revision: D155204: [clang][dataflow] Add `refreshStructValue()`..Jul 13 2023, 7:24 AM gribozavr2 added inline comments.
This revision is now accepted and ready to land.Jul 13 2023, 7:28 AM This revision was landed with ongoing or failed builds.Jul 17 2023, 12:26 AM Closed by commit rG243a79ca01f8: [clang][dataflow] Simplify implementation of `transferStdForwardCall()` in… (authored by mboehme). · Explain Why This revision was automatically updated to reflect the committed changes. mboehme marked an inline comment as done.
Revision Contents
Diff 540882 clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
|
Should we add an assert that it is not a value?