[lld] [lldb] [llvm] [Support][Cache] Make `pruneCache` return an `Expected` (PR #191367)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 04:37:38 PDT 2026
================
@@ -1212,7 +1212,13 @@ void ThinLTOCodeGenerator::run() {
}
}
- pruneCache(CacheOptions.Path, CacheOptions.Policy, ProducedBinaries);
+ Expected<bool> PrunedOrErr =
+ pruneCache(CacheOptions.Path, CacheOptions.Policy, ProducedBinaries);
+ if (!PrunedOrErr) {
+ // Log the error but continue execution: failure to prune the cache is not
----------------
jmmartinez wrote:
@teresajohnson If this last behavior is ok, I'd like to land this patch.
https://github.com/llvm/llvm-project/pull/191367
More information about the llvm-commits
mailing list