[all-commits] [llvm/llvm-project] 79f34a: [llvm] Fix assertion when stat fails in remove_dir...

Ben Langmuir via All-commits all-commits at lists.llvm.org
Fri Aug 12 11:35:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79f34ae7fe926c907c2e68b22fc15428f2e4be4e
      https://github.com/llvm/llvm-project/commit/79f34ae7fe926c907c2e68b22fc15428f2e4be4e
  Author: Ben Langmuir <blangmuir at apple.com>
  Date:   2022-08-12 (Fri, 12 Aug 2022)

  Changed paths:
    M llvm/lib/Support/Unix/Path.inc
    M llvm/unittests/Support/Path.cpp

  Log Message:
  -----------
  [llvm] Fix assertion when stat fails in remove_directories

We were dereferencing an empty Optional if IgnoreErrors was true and the
stat failed.

rdar://60887887

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




More information about the All-commits mailing list