[all-commits] [llvm/llvm-project] 0e8d4a: [clang][dataflow] Simplify handling of nullopt-opt...
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Thu Dec 22 06:20:15 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0e8d4a6df9598cf0d654c24bbd3901bfb77d91bb
https://github.com/llvm/llvm-project/commit/0e8d4a6df9598cf0d654c24bbd3901bfb77d91bb
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2022-12-22 (Thu, 22 Dec 2022)
Changed paths:
M clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
M clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp
Log Message:
-----------
[clang][dataflow] Simplify handling of nullopt-optionals.
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.
Differential Revision: https://reviews.llvm.org/D140506
More information about the All-commits
mailing list