[PATCH] D122231: [clang][dataflow] Add support for `value_or` in a comparison.
Gábor Horváth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 25 13:23:01 PDT 2022
xazax.hun added inline comments.
================
Comment at: clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp:295
+ // atom.
+ BoolValue &OptionalHoldsEmptyString = Env.makeAtomicBoolValue();
+ return Env.makeOr(Env.makeAnd(HasValueVal, OptionalHoldsEmptyString),
----------------
Not related to this PR, but I think in the future we will want to associate names to the values to make debugging easier (or maybe to generate really nice error messages).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122231/new/
https://reviews.llvm.org/D122231
More information about the cfe-commits
mailing list