[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:02:04 PDT 2022
xazax.hun added inline comments.
================
Comment at: clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp:279
+ cast_or_null<BoolValue>(Env.getValue(*ComparisonExprLoc))) {
+ Env.setValue(*ComparisonExprLoc,
+ Env.makeAnd(*CurrentValue, ComparisonValue));
----------------
I am still wondering a bit about this case.
We generate: `HasValueVal and ContentsNotEqX and CurrentValue`.'
I wonder if we want: `HasValueVal and (ContentsNotEqX <=> CurrentValue)` instead? Or even `HasValueVal and CurrentValue`?
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