[Lldb-commits] [lld] [lldb] [llvm] [Support][Cache] Make `pruneCache` return an `Expected` (PR #191367)
Chinmay Deshpande via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 14 08:57:05 PDT 2026
Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?=,
Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?=
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/191367 at github.com>
================
@@ -1212,7 +1210,12 @@ void ThinLTOCodeGenerator::run() {
}
}
- pruneCache(CacheOptions.Path, CacheOptions.Policy, ProducedBinaries);
+ auto ErrOrPruned =
+ pruneCache(CacheOptions.Path, CacheOptions.Policy, ProducedBinaries);
+ if (!ErrOrPruned) {
+ errs() << "Error: " << toString(ErrOrPruned.takeError()) << "\n";
+ report_fatal_error("ThinLTO: failure to prune cache");
----------------
chinmaydd wrote:
No way to clean up this `report_fatal_error` ?
https://github.com/llvm/llvm-project/pull/191367
More information about the lldb-commits
mailing list