[all-commits] [llvm/llvm-project] eb2131: [clang][dataflow] Do not crash on missing `Value` ...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Tue Apr 19 13:53:11 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb2131bdbad3f74be2fcf236b4d6921612af47a9
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2022-04-19 (Tue, 19 Apr 2022)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/Transfer.cpp
    M clang/unittests/Analysis/FlowSensitive/TransferTest.cpp

  Log Message:
  [clang][dataflow] Do not crash on missing `Value` for struct-typed variable init.

Remove constraint that an initializing expression of struct type must have an
associated `Value`. This invariant is not and will not be guaranteed by the
framework, because of potentially uninitialized fields.

Differential Revision: https://reviews.llvm.org/D123961

More information about the All-commits mailing list