[clang][dataflow][NFC] Expand comments on losing values in optional checker.
authorMartin Braenne <mboehme@google.com>
Wed, 7 Jun 2023 13:23:54 +0000 (13:23 +0000)
committerMartin Braenne <mboehme@google.com>
Mon, 12 Jun 2023 08:46:34 +0000 (08:46 +0000)
commitbbeda83090adcb3609f9c1331b2345e7fa547f90
tree5c6c569cca4f202ce61d021f6f4445043c4e5981
parent1ec995cc1c6c175ed4a04ab842a9c9d50f7b9ff4
[clang][dataflow][NFC] Expand comments on losing values in optional checker.

While working on the ongoing migration to strict handling of value
categories (see https://discourse.llvm.org/t/70086), I ran into issues related
to losing the value associated with an optional.

This issue is hinted at in the existing comments, but the issue didn't become
sufficiently clear to me from those, so I thought it would be worth capturing
more details, along with ideas for how this issue might be fixed.

Reviewed By: ymandel

Differential Revision: https://reviews.llvm.org/D152369
clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp