This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Simplify handling of nullopt-optionals.
ClosedPublic

Authored by ymandel on Dec 21 2022, 2:57 PM.

Details

Summary

Previously, in the case of an optional constructed from nullopt, we relied on
the value constructed for the nullopt. This complicates the implementation and
exposes it to bugs (indeed, one such was found), yet doesn't improve the
engine. Instead, this patch constructs a fresh optional representation, rather
than relying on the underlying nullopt representation.

Diff Detail

Event Timeline

ymandel created this revision.Dec 21 2022, 2:57 PM
Herald added a project: Restricted Project. · View Herald Transcript
ymandel requested review of this revision.Dec 21 2022, 2:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 21 2022, 2:57 PM
gribozavr2 accepted this revision.Dec 21 2022, 3:10 PM
This revision is now accepted and ready to land.Dec 21 2022, 3:10 PM
xazax.hun accepted this revision.Dec 21 2022, 3:32 PM
This revision was landed with ongoing or failed builds.Dec 22 2022, 6:20 AM
This revision was automatically updated to reflect the committed changes.