Previously, the newly added test would crash.
Depends On D153851
Paths
| Differential D153852
[clang][dataflow] Initialize fields of anonymous records correctly. ClosedPublic Authored by mboehme on Jun 27 2023, 3:09 AM.
Details
Diff Detail
Event TimelineComment Actions Ensure we model a field of an anonymous record even if the only place it's used gribozavr2 added inline comments.
This revision is now accepted and ready to land.Jun 28 2023, 5:21 AM mboehme added inline comments.
This revision was landed with ongoing or failed builds.Jun 28 2023, 9:07 PM Closed by commit rGd36324866ee1: [clang][dataflow] Initialize fields of anonymous records correctly. (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 535618 clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
clang/lib/Analysis/FlowSensitive/Transfer.cpp
clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
|
It turns out this was doing strictly too much work.
CXXDefaultInitExpr should only be producing the default value. The actual initialization should be left to CXXCtorInitializer.