[all-commits] [llvm/llvm-project] fa12e2: [Support][Cache] Make `pruneCache` return an `Expe...

Juan Manuel Martinez Caamaño via All-commits all-commits at lists.llvm.org
Fri Apr 10 01:50:14 PDT 2026


  Branch: refs/heads/users/jmmartinez/error_on_prune
  Home:   https://github.com/llvm/llvm-project
  Commit: fa12e21583bbdfbce2b224465413600e4c2c4904
      https://github.com/llvm/llvm-project/commit/fa12e21583bbdfbce2b224465413600e4c2c4904
  Author: Juan Manuel Martinez Caamaño <jmartinezcaamao at gmail.com>
  Date:   2026-04-10 (Fri, 10 Apr 2026)

  Changed paths:
    M lld/COFF/LTO.cpp
    M lld/ELF/LTO.cpp
    M lld/MachO/LTO.cpp
    M lld/wasm/LTO.cpp
    M llvm/include/llvm/Support/CachePruning.h
    M llvm/lib/Debuginfod/Debuginfod.cpp
    M llvm/lib/LTO/ThinLTOCodeGenerator.cpp
    M llvm/lib/Support/CachePruning.cpp
    M llvm/tools/gold/gold-plugin.cpp

  Log Message:
  -----------
  [Support][Cache] Make `pruneCache` return an `Expected`

When `sys::fs::disk_space` would fail in during a call to `pruneCache`,
it would report a `fatal_error`. However, a failure to prune doesn't
mean the caller should fail catastrophically.

Downstream, we use LLVM's cache in the OpenCL runtime. A failure to prune
the cache can be safely ignored without stopping the user's application.



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