[all-commits] [llvm/llvm-project] 6adfc6: [clang][dataflow] Modify `optional` model to handl...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Fri Jun 3 12:01:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6adfc64e709cc8b7b7a06b0e9afc60f6903f3cab
      https://github.com/llvm/llvm-project/commit/6adfc64e709cc8b7b7a06b0e9afc60f6903f3cab
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2022-06-03 (Fri, 03 Jun 2022)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
    M clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp

  Log Message:
  -----------
  [clang][dataflow] Modify `optional` model to handle type aliases.

Previously, type aliases were not handled (and resulted in an assertion
firing). This patch generalizes the model to consider aliases everywhere (a
previous patch already considered aliases for optional-returning functions).

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




More information about the All-commits mailing list