[all-commits] [llvm/llvm-project] 4ed494: [FlowSensitive] [StatusOr] [9/N] Make sure all Sta...

Florian Mayer via All-commits all-commits at lists.llvm.org
Mon Oct 27 09:29:45 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ed494e7282c3b36a35b8e0930fd2e14b7038167
      https://github.com/llvm/llvm-project/commit/4ed494e7282c3b36a35b8e0930fd2e14b7038167
  Author: Florian Mayer <fmayer at google.com>
  Date:   2025-10-27 (Mon, 27 Oct 2025)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp
    M clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp

  Log Message:
  -----------
  [FlowSensitive] [StatusOr] [9/N] Make sure all StatusOr are initialized

This is important if the first use of a StatusOr (or Status) is in a
conditional statement, we need a stable value for `ok` from outside of
the conditional statement to make sure we don't use a different variable
in every branch.

Reviewers: jvoung, Xazax-hun

Reviewed By: jvoung

Pull Request: https://github.com/llvm/llvm-project/pull/163898



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list